Hello and welcome to the community - thanks for sharing your script.
For Windows there is a new solution as release candidate available since week:
PowerShell Framework:
PowerShell Plugins:
PowerShell Service:
To get started easily, you can use the Kickstart:
The documentation within the PowerShell Framework should give you a pretty good start:
We would be happy if you could test it and share your feedback, improvements and if you want also your contribution to these modules.
Just out of curiosity: The script itself looks fine, but you are going to check if every service set to auto is actually running - is this correct? In my experience, this is mostly causing false positives because of services shutting themself down once their work is completed.