$ErrorActionPreference = "Stop"
$TaskName = "NT Workbench Local Runner"

if (Get-ScheduledTask -TaskName $TaskName -ErrorAction SilentlyContinue) {
  Stop-ScheduledTask -TaskName $TaskName -ErrorAction SilentlyContinue
  Write-Host "本机执行器已停止。"
} else {
  Write-Host "本机执行器当前没有安装。"
}
