In the future, it'd be kind of you to inform people what you did to get it working so that others who find themselves in a similar situation can get it working as well.
That being said you should be able to just add to two bat files as additional applications under the game in question. In the Edit Additional Application window there is a "Run Before..." and a "Run After..." checkbox that runs that file immediately before the game is started, and immediately after the process we start is closed.