@echo off
setlocal
set SCRIPT_DIR=%~dp0
if "%~1"=="" (
  powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Install-ByteBak-RustDesk.ps1" -SelfElevate
) else (
  powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%Install-ByteBak-RustDesk.ps1" -SelfElevate -PermanentPassword "%~1"
)
echo.
echo Finished. Press any key to close this window.
pause >nul
