Objects of Your Own: `[PSCustomObject]`

[PSCustomObject]@{ } builds an object of your own with named properties, so a tool you write hands back results that Sort-Object, Where-Object and Export-Csv can work with, the way they work with PowerShell's own commands, instead of lines of text.

Updated

Cheat sheet for the lesson Objects of Your Own: `[PSCustomObject]`: [PSCustomObject]@{ } builds an object of your own with named properties, so a tool you write hands back results that Sort-Object, Where-Object and Export-Csv can work with, the way they work with PowerShell's own commands, instead…
Category
PowerShell
Level
Journeyman
Tags
hashtable, object-pipeline, powershell, pscustomobject