remove console when spawning on windows machine