Using PowerShell Parameter Validation to Make Your Day Easier
A number of entries in the Winter Scripting Games use parameter validation, but some that I have seen may not be using it correctly or to its full potential. Writing functions or scripts require a variety of parameters which have different requirements based on a number of items. It could require a collection, objects of a certain type or even a certain range of items that it should only accept.