@echo off setlocal title Windows update status fltmc >nul 2>&1 if errorlevel 1 ( echo Requesting administrator rights... powershell.exe -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs" exit /b ) powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp080-Get-UpdateStatus-Admin.ps1" echo. pause