@echo off REM ========================================================================== REM Orynium netcheck launcher REM Runs netcheck.ps1 (read-only network diagnostic) with the right settings REM so you don't have to fight PowerShell's execution policy. REM REM Usage: REM Double-click netcheck.bat (interactive) REM netcheck.bat -Domain example.com (pass args straight through) REM netcheck.bat -Domain x.com -ExpectedGeo US -Yes REM REM This launcher and the script it runs make NO changes to the server. REM ========================================================================== setlocal set "SCRIPT_DIR=%~dp0" set "PS1=%SCRIPT_DIR%netcheck.ps1" if not exist "%PS1%" ( echo [ERROR] netcheck.ps1 not found next to this launcher. echo Keep netcheck.bat and netcheck.ps1 in the same folder. pause exit /b 1 ) REM -ExecutionPolicy Bypass affects ONLY this one process, not the machine. powershell -NoProfile -ExecutionPolicy Bypass -File "%PS1%" %* echo. echo Done. (This tool made no changes - read-only inspection only.) pause endlocal