Data
Data: Objects of Your Own: `[PSCustomObject]`, Where a Tool Keeps Its Data.
Updated
- Objects of Your Own: `[PSCustomObject]` (Journeyman): [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.
- Where a Tool Keeps Its Data (Journeyman): A tool keeps its data in a folder of its own under $env:LOCALAPPDATA, builds the path with Join-Path, creates the folder the first time it runs, and saves and loads its objects as JSON, so what you add today is still there tomorrow, whatever folder you're in.