Hi!
Why not do the whole thing from within a single batchfile? The following is just an idea, NOT THE RIGHT TECHIE WORDING, but it would look a little like this:
CLS
START hostsoftware
STOP
END
The theory behind the above (and here's where a dozen supergeeks say 'Pratfeatures missed out Command X here...') is that STARTis EXACTLY THE SAME as double-clicking with a mouse on an icon. So it'll start the software . Now control will be taken over BY the started software, so the next line of the batchfile won't be reached until the game is exited. When the game/software is exited, THEN control will pass to the next line, the word STOP, which is what you want. END will just end the batchfile, or you could use RTS, which means Return To System.
Most DOSes have a prog called EDLIN which wll let you create a batchfile while in DOS. Just type EDLIN from the C:\ prompt (root directory).
Hope this helps, just remember the wording of the demo batchfile above is just for example purposes - I always have to pratt about with batchfiles to get them working with things so it is just to give you an idea, it prob. wont work straight off like that.
If you want more help on yhe wording, tell me what the game is and if I can access it I Will do the best I can for you.
Regards
Ulrichburke