Aug 27 2021 09:50 AM
Aug 29 2021 10:50 AM
Aug 31 2021 07:47 AM
It depends on your logic, I am not sure how you define unavailable server. You need to write if statement and if it was true then create a task.
To create task in PowerShell, you may use New-ScheduledTask command.
You may find details and examples on New-ScheduledTask (ScheduledTasks) | Microsoft Docs