error handling, start script on windows