Hello Ian,
I think you could probably do that by entering the full string of MIDI bytes that you want to send in the sys-ex fields on the 'General settings | Switch MIDI outputs', then create a dummy stop in the CODM (with no ranks) and map it to that switch output with 'Organ settings | Connect organ switches to switch MIDI outputs'.