concept type extension file in category powershell
appears as: type extension file,
A type extension file

This is an excerpt from Manning's book PowerShell in Depth, Second Edition.
Note that you can also define dynamic properties using a type extension file, which we cover in a chapter 27. Our preference is to let views worry solely about visual formatting and to keep any code—like script properties—contained within type files. With that in mind, we cover script properties in chapter 27.
A type extension file starts off with the following XML, which you can copy from types.ps1xml: