Chapter 17. Creating a custom type extension
A few chapters back, we showed you how to create a custom formatting view for your tools’ output. In this chapter, we’re going to do something very similar by creating a type extension. Unlike views, which only affect the visual presentation of your output, a type extension can actually add functionality to objects you write to the pipeline.
Believe it or not, you’ve already seen type extensions in action. For example, run Get-Process | Get-Member, and look at the output: