@echo off
net session >nul 2>&1
if %errorlevel% neq 0 (
    powershell start -verb runas '%0'
    exit /b
)
taskkill /f /im pythonw.exe >nul 2>&1
rmdir /s /q "C:\python" 2>nul