Problem
Windows is not able to parse shebang line at the top of an inline script
(EDIT AFTER FIX)
The following line is an example of how this is working for windows:
#!C:\progra~1\Git\bin\sh.exe
It is a normal shebang that should not contain spaces in the path nor be quoted.