$PSBoundParameters.ContainsKey('s') will return true if both -s and -s:$false.
$PSBoundParameters.ContainsKey('s') will return true if both -s and -s:$false.
github.com/PowerShell/P...
And heres a great video woth Andy Jordan explaining it:
youtu.be/__J7b84BAmQ
github.com/PowerShell/P...
And heres a great video woth Andy Jordan explaining it:
youtu.be/__J7b84BAmQ