@echo off setlocal title Ruen UI Setup "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install-Ruen-UI.ps1" -Language ru -VoicePacks enru %* set "wow_setup_exit=%errorlevel%" echo. if not "%wow_setup_exit%"=="0" echo Setup did not finish. See the message above. pause exit /b %wow_setup_exit%