# Show PowerShell Map as an Object
## Metadata
**Status**:: #x
**Zettel**:: #zettel/fleeting
**Created**:: [[2026-02-01]]
**Tags**:: #powershell
## Synopsis
Use `[PsCustomObject]`.
```powershell
(pwd -stack).ToArray() | % { $id = 0 } {
[PSCustomObject]@{ Id = $id++; Path = $_.Path }
}
```