Could you set a bat file as your shell and have both apps, yours and MameWAH called from the bat file? Also, the option is there in the latest beta. Here is the section from the mamewah.ini file.
### External Application Settings ###
startup_app_commandlines                  
exit_app_commandlines                     
exit_and_run_app_commandlines             
Enjoy,
John