@echo off
rem Remote support launcher for kutashoff.ru (no admin rights required).
rem ASCII only; all logic is in support.ps1. Files are cached in the folder below.
set "DIR=%LOCALAPPDATA%\KutashoffSupport"
set "PS1=%DIR%\support.ps1"
if not exist "%DIR%" mkdir "%DIR%"
curl -fsSL -o "%PS1%.new" "https://kutashoff.ru/remote/files/support.ps1"
if exist "%PS1%.new" move /y "%PS1%.new" "%PS1%" >nul
if not exist "%PS1%" (
  echo Failed to download support script and no cached copy found. Check internet.
  pause & exit /b 1
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%PS1%"
