$target=Join-Path $env:LOCALAPPDATA 'Programs\JVR Software\ServerForge Ultimate';Get-Process -Name 'ServerForge Ultimate' -ErrorAction SilentlyContinue|Stop-Process -Force;& sc.exe stop ServerForgeUltimate 2>$null|Out-Null;& sc.exe delete ServerForgeUltimate 2>$null|Out-Null;Remove-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' -Name 'ServerForge Ultimate' -ErrorAction SilentlyContinue;Remove-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\ServerForgeUltimate' -Recurse -Force -ErrorAction SilentlyContinue;Remove-Item (Join-Path ([Environment]::GetFolderPath('Programs')) 'ServerForge Ultimate.lnk') -Force -ErrorAction SilentlyContinue;Start-Process powershell.exe -WindowStyle Hidden -ArgumentList '-NoProfile','-Command',"Start-Sleep 2; Remove-Item -LiteralPath '$target' -Recurse -Force"
