We're dealing with what appears to be a memory leak issue, and we're still trying to find the root cause. In the meantime, Azure is auto-healing every time the memory gets high, which is happening about every 13 hours. Every time this happens the site goes down for up to 20 minutes.
Until we find the cause of the memory leak, I want to mitigate this by recycling the app pool at a certain time every day (e.g. 6AM EST) so that we can isolate the auto-healing to after business hours. I'm not sure where to start though - I know that Sitecore Powershell has a Restart-App command, but I'm not sure how to make a Powershell script that will run automatically. Can someone point me to where to get started in making a script to recycle the app pool at a certain time every day?