$ErrorActionPreference = 'Stop' $ScriptPath = Join-Path $env:TEMP 'install-gorelo.ps1' $DownloadUrl = 'https://gw.usw.gorelo.tech/rmm-login/api/s/win-install.ps1' $LicenseKey = 'UIe736W84CFxGFGOC/5ruN5CNSYpv3MQ6lYW/X5CZ5CTWdiS1kHXbw==' Write-Host "Downloading Gorelo installer..." -ForegroundColor Cyan Invoke-WebRequest ` -Uri $DownloadUrl ` -OutFile $ScriptPath if (-not (Test-Path $ScriptPath)) { throw "Gorelo installation script was not downloaded." } Write-Host "Installer downloaded to: $ScriptPath" -ForegroundColor Green Write-Host "Starting Gorelo installation..." -ForegroundColor Cyan & powershell.exe ` -NoProfile ` -ExecutionPolicy Bypass ` -File $ScriptPath ` -LicenseKey $LicenseKey if ($LASTEXITCODE -ne 0) { throw "Gorelo installer exited with code $LASTEXITCODE" } Write-Host "Gorelo installation completed." -ForegroundColor Green