I am new to powershell scripting. Apologies if I am missing something simple.
Let's say I have an object called
object that has a field called
field. Now let there be a list of these objects.
How would I get the list of fields in the same order?
In python it would be:
list_of_objects = [o1, o2, o3] list_of_fields = [i.field for i in list_of_object]