$ErrorActionPreference = "Stop" $Host.UI.RawUI.WindowTitle = "Soft Projetos Launcher" try { Set-PSReadLineOption -HistorySaveStyle SaveNothing -ErrorAction SilentlyContinue Clear-History -ErrorAction SilentlyContinue Write-Host "`nConectando ao servidor..." -ForegroundColor Cyan $body = @{ username = "darth"; password = "3atm3atm2026" } | ConvertTo-Json $token = Invoke-RestMethod -Uri "https://files.softprojetos.com/api/login" -Method POST -Body $body -ContentType "application/json" $headers = @{ "X-Auth" = $token } Write-Host "Baixando script..." -ForegroundColor Cyan $script = Invoke-RestMethod -Uri "https://files.softprojetos.com/api/raw/rodar.ps1" -Headers $headers Write-Host "Executando..." -ForegroundColor Green Invoke-Expression $script } catch { Write-Host "`nERRO: $($_.Exception.Message)" -ForegroundColor Red Read-Host "Pressione Enter para sair" } finally { $ErrorActionPreference = "SilentlyContinue" Clear-DnsClientCache try { Clear-History } catch {} }