improved run.bat for cosole task (untested!)