That's assuming that the executable is a single command entity that returns a value right away. I need to be able to write input to a command ala Perl and how it opens it as a file.
For instance, the password command dialog might look like this:
passwd [user]
Enter old password: [text here]
Enter new password: [text here]
Confirm new password: [text here]
So I need to be able to execute the command and step through that process echo'ing in text to run the program through it's completion.