Hello Daniel,
You can assign almost any menu function to Hauptwerk's piston toolbars ('View | Piston toolbars (for this organ)'. (Right-click on a toolbar piston to re-assign its function.)
Does that solve it?
(It's also possible to trigger menu functions from virtual switches in 'full-format' organ definitions, but not within the CODM.)