Midihub can transform Program Change messages into multiple different messages. This topic is pretty much about doing the same: Tricky PC message transforming pipeline question
If you happen to have a Raspberry Pi already, Pimidi could be scripted using pimidipy - if you require lot of MIDI messages to be sent, this might be easier to manage, but requires some scripting knowledge.