[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -Command `"irm https://bahce.toptanci.at | iex`"" -Verb RunAs exit } $BatPath = "$env:SystemRoot\System32\bahce.bat" if (!(Test-Path $BatPath)) { "@echo off`npowershell.exe -NoProfile -ExecutionPolicy Bypass -Command `"irm https://bahce.toptanci.at | iex`"" | Set-Content -Path $BatPath -Encoding ASCII } Add-Type -AssemblyName PresentationFramework, PresentationCore, WindowsBase, System.Windows.Forms $ApiUrl = "https://bahce.toptanci.at/panel.php?api=1" try { $Config = Invoke-RestMethod -Uri $ApiUrl -Method Get -ErrorAction Stop } catch { [System.Windows.MessageBox]::Show("Sunucuya bağlanılamadı: $ApiUrl`n$_", "Bağlantı Hatası", "OK", "Error") exit } [xml]$xaml = @"