YUNOVA · PowerShell · Module 11: Advanced PowerShell
Advanced functions with CmdletBinding and pipeline input
Advanced functions with CmdletBinding and pipeline input
Key points
- [CmdletBinding()] gives a function common parameters like -Verbose.
- ValueFromPipeline lets a parameter take objects from the pipeline.
- Pipeline input is handled one object at a time in the process block.