Answers for "powershell output array as table"

0

powershell output array as table

$table = @( @{ColumnA="Able";    ColumnB=1},
            @{ColumnA="Baker";   ColumnB=2},
            @{ColumnA="Charlie"; ColumnB=3} )

$table | ForEach {[PSCustomObject]$_} | Format-Table -AutoSize


ColumnA ColumnB
------- -------
Able          1
Baker         2
Charlie       3
Posted by: Guest on February-05-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language