A scheduled script to test availability every 20 minutes
Why not just fix the problem?
You do not need a PowerShell script. IISReset is a system utility. It does not use PowerShell. Just schedule it directly.
What is down? How are you defining down? Not Internet? No database? What? Down is not a technical term.
Down = Offline
The product (web application was built by a Vendor) Vendor is here no more.
Down = Offline
The product (web application was built by a Vendor) Vendor is here no more.
How do you determine if it is offline. A web application is running or not. That is complex issue depending on the application and how it is deployed. If you do not know how to test that then you need the vendor. If the vendor is gone you will need to hire a consultant to work with you too fix it.
This is a scripting forum. It is not a fix my web server forum. IISReset can be run as a task and reset the web server or any application. It is up to you to say how you determine if an application is offline.