Program selector automation


I have a simple question.
In my project I have an audio track with an insert of a GuitarRig plugin. I need to automate the GuitarRig program change. So I’ve created a Midi Track and connected its output to the GuitarRig Midi Input.
On the midi track now I can see that the Program Selector reflect the program used in GuitarRig.
The question is: how can I automate the program selector in order to automatically change the guitar rig sound as the song plays?
I thought about using some midi program change messages on the midi track but this doesn’t seems the easiest way, because you have to figure out the relation between midi program change number and GuitarRig program names.

Is there a simple way?

Thanks in advance,