title: How to join two object arrays in Powershell
body: <p>I have two arrays of objects in my powershell script</p>
  <p>First one has values likes this</p>
  <pre><code>@{Id=1, Count=24}
  @{Id=2, Count=34}
  </code></pre>
  <p>Second</p>
  <pre><code>@{Id=1, Name=&quot;Some name&quot;}
  @{Id=2, Name=&quot;Some other name&quot;}
  </code></pre>
  <p>I like to join these two so I get</p>
  <pre><code>@{Id=1, Count=24 Name=&quot;Some name&quot;}
  etc
  </code></pre>
  <p>Eventually I need to write it to a csv file.</p>