title: Can a property be added to the result returned by Compare-Object cmdlet?
body: <p>In PowerShell, to compare properties of 2 objects we use <code>Compare-Object -Property</code>. Is there any way that I can add a property to the result returned?</p>
  
  <p><em>For example:</em>
  This is the output of the following command:</p>
  
  <pre><code>Compare-Object -ReferenceObject $first -DifferenceObject $second -Property Name, Length, LastWriteTime
  </code></pre>
  
  <p>where <code>$first</code> and <code>$second</code> are 2 objects. I want to add a property <code>Path</code> to this output.</p>
  
  <pre class="lang-none prettyprint-override"><code>Name                   Length LastWriteTime        SideIndicator
  ----                   ------ -------------   
  ImagingEngine.dll     2360832 7/10/2015 4:31:20 PM =&gt;           
  ImagingEjsbxngine.dll 2360832 7/10/2015 4:31:20 PM &lt;=  
  </code></pre>