Make yor scripts available for your shell and use tcsh at best.
You can enter the full path of your exported folder for running mt_prep_gamma_snap_changed.
Use the updated scripts provided by Katherine: About the STaMPS category
However, I wasn’t lucky with cygwin and had to switch to Linux, so I can’t help you for Windows solutions.