I can not get a powershell script to execute a bat file directly. For example, this works on the command line:
.\\\\my-app\\my-fle.bat
When
To run the .bat, and have access to the last exit code, run it as:
& .\my-app\my-fle.bat