in reply to Re^4: Getting the ENV from the .bat file
in thread Getting the ENV from the .bat file

That is because you don't have a env command on Windows, and the Windows shell uses double quotes for quoting, and many other things. You need to change the snippet to respect Windows conventions.

Also, you may want to put your code in between <code>...</code> tags so it renders and downloads nicely.