I have a PSCustomObject with properties and values. My goal is to quickly put the values in an array. I am fairly new to powershell so I am unsure if this is something I can do in a single-line.
My object:
object
propA : valA
propB : valB
propC : valC
I want to get an array of just the values as fast as possible, Ideally this would not involve a loop because this process will be done thousands of times.
valArray
valA, valB, valC
I have tried a couple things. $object | ft -HideTableHeaders seems to get me close to what I want, but it does not appear to return an array