Patrick Greunauer creates a class:
With PowerShell 5.0 and later, PowerShell supports object‑oriented programming by allowing you to create and use classes. Classes help you structure code, model real‑world entities, and reuse logic more effectively.
Click through for an example. Just as with most things, as soon as PowerShell starts moving from scripting to proper .NET work, it’s clear just how much less typing C# and F# require for the same thing.