That is a simple text file, you need to list your commands line by line into it. You can read some tutorials about bash scripts to get a better view.
Usually it begins with:
as the very first line.
For permission you need to use the tools of cygwin, not the tools of windows. That is the command chmod and chown (see man pages about usage).
For example you will set execute rights by:
chmod +x <filename>