PowerShell scripts for Sharepoint health reports automation

I am developing PowerShell scripts for SharePoint server farm health reports automation. I need to develop scripts to verify if SharePoint services are running correctly. In short I will need to audit the SharePoint farm through PowerShell scripts to ensure it is in a healthy state. I also need meaningful reports from the SharePoint servers such as what service is failing, what is the size of each content DB in the farm, number of site collections getting created and so on, any event logs, and so on. Basically any PowerShell script samples for SharePoint health automation will be useful. Any ideas?