title: Powershell Get a specific process counter with id process
body: <p>I want to get specific counters for processes that I have process id's for. However I can't think of a way to use where-object to match the process for the counter.
  Like</p>
  
  <pre><code>Where Gc '\process(*)\id process -eq 456 gc '\process($name)\working set'
  </code></pre>
  
  <p>So use the process id to retrieve the name and get the working set (or something to that effect).</p>