This recipe shows you how to apply the Where method instead of Where-Object to get results more flexibly. You will see the benefits of Where as an extension method to lists of any kind. You have already seen Where-Object in Chapters 3 and 4, so we will not go into detail on how Where-Object works. Kindly review the Running PowerShell Core (Chapter 3, Working with Objects) and Filtering data (Chapter 4, Mastering the Pipeline) recipes if you are unsure about how Where-Object works.
Comparing Where-Object and the Where method
Getting ready
Install and start PowerShell Core.