@echo off
title ManagesMe Host Setup
echo.
echo ManagesMe Host - manages.me
echo.
set "PS1=%TEMP%\ManagesMe-Host.ps1"
echo Downloading installer...
powershell -NoProfile -ExecutionPolicy Bypass -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://manages.me/download_host.php' -OutFile '%PS1%' -UseBasicParsing"
if errorlevel 1 (
  echo Download failed. Check internet and try again.
  pause
  exit /b 1
)
echo Starting setup — click Yes on the Administrator prompt...
powershell -NoProfile -ExecutionPolicy Bypass -Command "Start-Process powershell.exe -Verb RunAs -ArgumentList '-NoProfile','-ExecutionPolicy','Bypass','-NoExit','-File','""%PS1%""'"
echo.
echo If a blue PowerShell window opened, sign in there and wait for Done!
echo You can close this window.
timeout /t 8 >nul
