improved run script for windows