How to bring cmdlets together – the pipeline
Since Unix and the C programming language in the 1970s, operating systems have abstracted computer input and output into standard streams. These are abstract devices that belong to the operating system. They allow any program running on that operating system to accept standardized input, often from a keyboard, and provide standardized output, usually to a screen, without needing to know anything about how the input got there, or where the output is going. The three most common are standard input (stdin), standard output (stdout), and standard error (stderr). The stdin stream is almost always from the keyboard and can be captured by the PowerShell Read-Host
cmdlet. The stdout stream is the successful output of the cmdlet. The stderr stream contains any error messages produced by the program and is sent to a separate stream so as not to interfere with any successful output.
PowerShell expands on these streams a bit and has six output...