Pipeline Possibilities
In the previous article, I demonstrated how to add pipeline binding to your advanced PowerShell function. There is nothing wrong with writing a simple PowerShell function. They have a role to play as well. But I know that functions that are indistinguishable from cmdlets offer more flexibility and are the sign of a professional PowerShell toolmaker. Let me show you some other possibilities.
Input Options
You can, and should, make your command as easy to use as possible. This might mean taking pipeline input. You can have a parameter accept input by value and by property name. Here’s a version of the function I used in the last article.
Want to read the full issue?