how to run bat file in powershell code example Example: powershell run bat file cmd.exe /c '\my-app\my-file.bat'