@echo off setlocal "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -File "%~dp0tools\epub_review_editor\open_editor.ps1" set "exit_code=%ERRORLEVEL%" if not "%exit_code%"=="0" ( echo. echo Startup failed. See the message above. pause ) exit /b %exit_code%