fix bugs for windows bat: pass params incorrectly