@echo off

net session >nul 2>&1
if %errorLevel% neq 0 (
    cmd /c "powershell -Command ""Start-Process cmd -ArgumentList '/c \"\"%~f0\"\"' -Verb RunAs"""
    exit /b
)

cd /d "%~dp0"

pnputil /add-driver *.inf /subdirs /install

exit 0