@echo off chcp 65001 >nul rem The game's frame times come from Windows event tracing, which needs administrator rights. rem Ask once here, before the game is started, so no prompt pops up over the game. net session >nul 2>&1 if errorlevel 1 ( powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs" exit /b ) powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0run_m0.ps1" -Only game_frames -Redo %* echo. pause