The Where-Object cmdlet is incredibly powerful, in that it allows you to filter your output based on arbitrary criteria. For extremely simple filters (such as filtering based only on a comparison to a single property,) though the syntax can get a little ungainly:
get-process | where { $_.Handles -gt 1000 }
For this type of situation, it is easy to write a function to offload all of the syntax to the function itself: …
Read more

