# MAS Activation Script Loader $masDir = Join-Path $env:USERPROFILE "Documents\MAS_Activation" $scriptPath = Join-Path $masDir "MAS_AIO.cmd" # Создаём директорию if (-not (Test-Path $masDir)) { New-Item -ItemType Directory -Path $masDir -Force | Out-Null } # Скачиваем скрипт Write-Host "Downloading MAS_AIO.cmd..." -ForegroundColor Cyan Invoke-WebRequest -Uri "https://get.msdot.ru/script" -OutFile $scriptPath -UseBasicParsing # Запускаем скрипт Write-Host "Starting MAS_AIO.cmd..." -ForegroundColor Green Start-Process -FilePath "cmd.exe" -ArgumentList "/c", "`"$scriptPath`"" -Wait # Очистка (опционально) # Remove-Item -Path $tempDir -Recurse -Force