I'm trying to make a table in PowerShell with custom headers, I am able to do this with
"var" | Select @{n="First";e={"1"}}, @{n="Second";e={"2"}},@{n="Third";e={"3"}}
First Second Third
----- ------ -----
1 2 3
However, without the initial object, there is no output
Select @{n="First";e={"1"}}, @{n="Second";e={"2"}},@{n="Third";e={"3"}}
I can't tell the difference between these other than one is after a pipeline while the other isn't. Why won't this work?
Why doesn't this work?