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…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/9abd4735d28d40e898b26ccf050cbe8f.webp)
- Category
- PowerShell
- Level
- Journeyman
- Tags
- hashtable, object-pipeline, powershell, pscustomobject