title: How to get a list of a particular field from a list of objects in powershell
body: <p>I am new to powershell scripting. Apologies if I am missing something simple.</p>
  
  <p>Let's say I have an object called <code>object</code> that has a field called <code>field</code>. Now let there be a list of these objects. </p>
  
  <p>How would I get the list of fields in the same order?</p>
  
  <p>In python it would be:</p>
  
  <pre class="lang-py prettyprint-override"><code>list_of_objects = [o1, o2, o3]
  list_of_fields = [i.field for i in list_of_object]
  </code></pre>