Is the program to which you want to send commands written by you ? Because the program itself needs to be able to accept commands from outside. Otherwisw you could not 'send' commands to an application.
For example excel. word, outlook can be handled by VB programs a lot of others can't.

I Think there is some more information needed to answer your question.

Jonny Poet