$message = "Do you want to revoke Debug programs privilege from Users and Administrators (if is not already revoked)?"
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
  "Revokes Debug programs privilege from Users and Administrators."
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
  "Does nothing."
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
$result = $host.ui.PromptForChoice($title, $message, $options, 1)
switch ($result) {
  0 {
    "Please, run this program and finish installation (agree with License Agreement and don't change installation directory) or if it is already installed, choose Reinstall option and finish reinstallation."
    Start-Sleep -Seconds 1
    Start-Process .\rktools.exe -Wait
    "Please, close the console now, run PowerShell as Administrator again and then run 'debug.ps1' script."
  }
  1 {
    & '.\restart.ps1'
  }
}
