@echo off
:: Dvoklik / "Run as administrator". Argumenti se prosljeduju skripti, npr.:
::   Install-Apps.cmd -RustDeskHost rd.tsck.hr -RustDeskKey "Xyz...=" -CameraSites 192.168.31.100
net session >nul 2>&1 || (
    powershell -NoProfile -Command "Start-Process -Verb RunAs -FilePath '%~f0' -ArgumentList '%*'"
    exit /b
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install-Apps.ps1" %*
pause
