Best solution in my opinion:
My solution:
Download and install .git for Windows
Right click desktop and say "git bash here"
Execute your script like in unix
Done!
Caution: Many commands won’t work on windows! But still, a lot of the basic stuff will work.
If you need that script regularly you may want to create a shortcut (on your desktop e.g.):
Create a Shortcut to
mintty.exeon your desktopEdit properties of the shortcut and change the target (keep the path):
C:\Program Files\Git\usr\bin\mintty.exe" -h always /bin/bash -l -e 'D:\folder\script.sh'