I use Powershell's "custom-object" command to create custom objects with properties I want to save. But custom-object applies only to one variable. Is it possible to create a custom class, like in ...
You can also set custom types. Only downside is that you need PowerShell v3 or later... but realistically, you should be on the latest, if you value security, automation, efficiency, etc.