I haven't used a batch before to do this. Since it appears you are using plink however, something like this could work. Create a text file with the necessary commands and save it as commands.txt or something.
-m c:\path\commands.txt > output.txt <--------------then add that to the end of your current batch I believe.
Additionally
http://the.earth.li/~sgtatham/putty/0.67/htmldoc/Chapter7.html this is a helpful link for using plink.
Let me know how it goes, or if you need anything else.