Send an IR command programmatically from Harmony?

If you can set up a Harmony activity for the command you want sent, then that’s easy, as harmony activities already appear as Switches through the official integration.

If you need something more than that, take a look at the following integration: