make runCommand work on windows