SystemAudit will show you how cool is a task automation using OOP in Powershell. What is it for? You can gather some information about your local or even remote systems and create a trivial html report. Also with few small modifications you could customise nearly everything and add more details to the output.
IMPORTANT !! YOU'LL NEED AT LEAST POWERSHELL 5.x as I decided to use classes !! goodies added to ver 5.
The following link will take you to the assosiated article,
https://art-ek.github.io/SystemAudit/
or LinkedIn
https://www.linkedin.com/pulse/powershell-automation-sysadmins-real-life-oop-example-artur-les/