-Replace spawn with exec to work on Windows