title: How do I return only the integer sum of Measure-Object in PowerShell?
body: <p>If I run the following command in PowerShell, it will return to me an object with the sum of the WorkingSet property:</p>
  
  <pre><code>PS &gt; get-process chrome | measure-object WorkingSet -sum
  
  Count    : 36
  Average  :
  Sum      : 2377129984
  Maximum  :
  Minimum  :
  Property : WorkingSet
  </code></pre>
  
  <p>If I want to return just the <code>Sum</code> value, the only way I've found to do it is:</p>
  
  <pre><code>PS &gt; $a = get-process chrome | measure-object WorkingSet -sum
  PS &gt; $a.Sum
  2359980032
  </code></pre>
  
  <p>Is there a way to pipe the original command to some other command so that I return the integer in a single step? Something like this:</p>
  
  <pre><code>PS &gt; get-process chrome | measure-object WorkingSet -sum | {some other command}
  </code></pre>