There is a bug in [Chapter06](https://github.com/PacktPublishing/Mastering-Windows-PowerShell-Scripting-Fourth-Edition/tree/master/Chapter06)/2.6.1.Switch_and_SharedConditions.ps1. Line 13 has the variable $commonParams, but it should be $params.