I have runbook which is checking scheduler of my report server and give us output in email if any scheduler is not running.
I want a SMS if any scheduler is not running.
What i am thinking is that any way that my runbook stop whenever the output is that scheduler is not running.
Further I can put alert on runbook to get sms.
current:
if ($outputisrunning) {
Write-Output "Found job completion entry in database."
}else{ send email
Write-Output "Email sent successfully."
}
Requirement is that after "Write-Output "Email sent successfully." I want to stop the runbook.





