Great! If you use Bome anyway, then no problem. However, if it's constantly running in the background just for this, then you might like to have a look at the following post. With this method, no external software needs to be running in order to send midi to a chosen port.
Ignore the first bit and look at the bit about SendMidi (under the line).
I use it to select presets (via program change) on my Line 6 HX Stomp. As you can see, I'm passing the program number on as a variable from KM.