Long story short: those scripts don't escape some characters, when expandig some system vars and passing them to commands, and a couple of those chars are "(" and ")". This leads to:
/bin/sh: 1: Syntax error: "(" unexpected
in no time.
Under cmd you can write:
mkdir "This is a test, (really!)"
under bash you need something like this:
mkdir "This is a test, \(really\!\)"
If you are wondering why there are Windows paths in the PATH variable of the Linux Subsystem: recently MS introduced the possibility to start windows executables from within the bash shell, so bash on start merges the Windows %PATH% with the Linux $PATH.
The fastest workaroun is very simple: remove from the PATH variable the Windows paths. On my PC:
teo@Bleed:~$ echo ${PATH}
/home/teo/bin:/home/teo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games[:/usr/local/games:/mnt/d/Python36-64/Scripts:/mnt/d/Python36-64:/mnt/c/Program Files (x86)/Intel/iCLS Client:/mnt/c/Program Files/Intel/iCLS Client:/mnt/c/ProgramData/Oracle/Java/javapath_target_3146406:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files/IDM Computer Solutions/UltraEdit:/mnt/c/Program Files/IDM Computer Solutions/UltraCompare:/mnt/c/Program Files (x86)/GnuWin32/bin:Compare:/mnt/d/bind9/bin:/mnt/c/Program Files/VideoLAN/VLC:etc:etc:etc:etc
teo@Bleed:~$
Linux Subsystem part:
/home/teo/bin:/home/teo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games[:/usr/local/games
So I did:
teo@Bleed:~$ export PATH=/home/teo/bin:/home/teo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Hope this can help you.
Bye!
Shub