Recently I was inundated with queries, asking me how to run shell scripts using Cygwin. This illustrated guide is primarily meant to address the issue of running shell scripts posted on this site on a WindoZe machine.
I assume that your machine has a working internet connection and is connected to internet. I am going to be economical on words and let the screenshot speak.
Step 1. Download Cygwin.
Step 2. Execute the Cygwin executable (setup.exe)
Step 3. After the install is complete, copy the script to Cygwin home folder. By default home folder is located at C:\cygwin\home\User
Step 4. Run Cygwin terminal from the Start menu -> Programs -> Cygwin
Step 5. Chmod +x the script to make it executable
Step 6. Run the script.
Step 7. The script throws up errors as there is no Desktop folder in the home directory
Step 8. mkdir Desktop and run script again.