Another good option for Windows to run Linux shell scripts is using GnuWin utilities. You can download package CoreUtils for Windows from
http://gnuwin32.sourceforge.net/packages/coreutils.htm. It takes only about 6 Mb (compare to Cygwin's size!) and let me run your sample script on Windows7 really!