Chapter 13. Using all the pipelines
A couple of chapters ago, we pointed out that adding [CmdletBinding()] to a Param() block would enable the output of certain commands for verbose, warning, informational, and other output. Well, it’s time to put that to use and demonstrate why you’d want to use them.
13.1. Knowing the six channels
It’s useful to understand that PowerShell has six channels, or pipelines, rather than the one we normally think of. First up is the Success pipeline, which is the one you’re used to thinking of as “the pipeline.” This gets some special treatment from the PowerShell engine. For example, it’s the pipeline used to pass objects from command to command. Additionally, at the end of the pipeline, PowerShell sort of invisibly ...
Get Learn PowerShell Scripting in a Month of Lunches now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.