why not do the batch file method but use start /max