PowerShell’s default output type is List for any object with more than 4 properties (or maybe it’s “4 or more”; I forget which, off the top of my head.) If you want to force it to use a table instead of a list, you can just pipe your objects to Format-Table. Keep in mind that your screen width is limited, though. Depending on how wide the columns are (particularly if you use the -Autosize switch), the right-most columns might be cut off.
I am trying to display this a table. The column should be Drive_bay, Product_Id,Status,UID_LED,Enclosure_ADDR, and Firmare_version. Which it does when I Format-table it, but the out put is does not look right.
Looks like that command returns some objects that are organized a little weirdly. You can work around it with constructed properties (either to Select-Object or Format-Table, depending on your needs), or with loops and New-Object. Try this: