https://bugs.winehq.org/show_bug.cgi?id=38558
--- Comment #16 from Jason Edmeades us@edmeades.me.uk --- @helloworld - This bug is for the windows version of cmd.exe, not the wine version. If you are seeing problems running that script on up to date wine using builtin cmd.exe, please raise a separate bug (your description sounds similar to something fixed recently so please make sure you try a new version). If you are using windows cmd.exe, then this could be your issue, but also please consider why you would be using windows cmd.exe and ensure there are bugs for any issues handling batch programs that necessity can be removed.