This is what most people do for commands they need to redo all the time, but if you want to make an app that will enter the commands for you, like a visual interface, where you can put in specific values...
Originally Posted by Daax
Windows.Forms.SendKeys.Send("your command here")
This makes your tool window the active window, then sends commands to it.
Path.Text would be the name of the command prompt window when you're running tool. For me atleast, it's the path to the cmd.exe located in my CE root dir.