I know how to use the shell command to start a program from within my own. But I'd like do something more complicated:

1. Start another app.
2. Select a menu option: open a specific file.
3. Then use another menu to make a change (edit a textbox)
4. And finally select the save command in the file menu and give the file a new name.
5. Exit from the app.