To make it work, do in Visual Studio:
Right-click on your project in the Solution Explorer Select "Properties" Go to the "Build" tab Look for "Platform target" Change from "Any CPU" to "x64"
explanation I've followed suggestion of TessellatingHeckler to put a pause at the end of the .bat. The cmd windows paused, I did few tests and in one of them run another instance of the cmd invoked by c#. This other instance had "Administrator: C:\Windows\SysWOW64\cmd.exe in the title. Such a thing happens when c# code is intended to run on x32 rather than x64 platform.