# Data

Data: Objects of Your Own: \`\[PSCustomObject\]\`, Where a Tool Keeps Its Data.

Updated: November 10, 2026

1. [Objects of Your Own: \`\[PSCustomObject\]\`](https://www.ask-codey.com/lessons/powershell-custom-objects) (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.
2. [Where a Tool Keeps Its Data](https://www.ask-codey.com/lessons/powershell-app-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.

Source: https://www.ask-codey.com/courses/powershell-in-depth/topics/powershell-data
