Summary
We covered some really interesting and quite technical topics in this chapter. We started by describing what the pipeline does, and then looked at techniques for selecting and sorting objects. We then looked at filtering objects and talked about the importance of using filtering to allow PowerShell to work as efficiently as possible.
From there, we introduced a topic that will be important later, enumeration, and looked at one of the newer features of PowerShell 7, parallel enumeration. In the last part of this chapter, we took a deeper dive into how the pipeline accomplishes its magic and examined the two methods of parameter binding: ByValue
and ByPropertyName
. Finally, we played with a cmdlet that allows us to get under the hood of how the pipeline is working: Trace-Command
.
Most of the time, the pipeline just works. However, for cases when it doesn’t, this chapter has given us the essential knowledge we need to understand what it is doing and, hopefully, how...