Windows Script Hosting
With Windows script hosting you can do a lot of things.. you can automatically execute a program and perform some actions on it using Send keys method..
Here is more about Send Keys method and Windows Script Hosting
Here is a sample Script of it
set WshShell = WScript.CreateObject(”WScript.Shell”)
[...]