use spawn-cmd for windows compatibility