Follow up for #110.
Added PsScriptAnalyzer and fixed all warnings or excluded the rule see PSScriptAnalyzerSettings.psd1.
PSAvoidGlobalVars could also be ignored at function level in win-updates.ps1 if you like.
Also formatted all powershell files.
I made the changes a while back but never committed them.
Tipp: select hide whitespace changes in review
Warning: the changes are not tested (I did not build any vagrant boxes to validate)!
Follow up for #110. Added PsScriptAnalyzer and fixed all warnings or excluded the rule see PSScriptAnalyzerSettings.psd1. PSAvoidGlobalVars could also be ignored at function level in win-updates.ps1 if you like. Also formatted all powershell files. I made the changes a while back but never committed them. Tipp: select hide whitespace changes in review Warning: the changes are not tested (I did not build any vagrant boxes to validate)!