# Show PowerShell Map as an Object ## Synopsis Use `[PsCustomObject]`. ```powershell (pwd -stack).ToArray() | % { $id = 0 } { [PSCustomObject]@{ Id = $id++; Path = $_.Path } } ```