PowerShell Automation Script Example: A sample PowerShell script that can be used as a template for scheduled tasks or other automation and includes warning/error ...