Fixed command line execution for windows