(The method no longer works starting with Windows 11 build 22000.65.)
echo off title BatchCraft if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)