The Process Class, will do what you want, start the program, redirect the standard input then send text to the process. By sending the right key characters you should be able to save the file as well. The articles I linked to include sample code that should be able to guide you.
Personally I try to avoid API functions when there are .net functions that do the same thing. Less chance of the code breaking if the API changes.