title: Powershell Get CPU Percentage
body: <p>There doesn't seem to be any simple explanations on how to get CPU Percentage for a process in Powershell. I've googled it and searched here and I'm not seeing anything definitive. Can somebody explain in layman terms how to get CPU Percentage for a process? Thanks!</p>
  
  <p>Here's something to get you started ;)</p>
  
  <pre><code>$id4u = gps | ? {$_.id -eq 412}
  function get_cpu_percentage {
  # Do something cool here
  }
  get_cpu_percentage $id4u
  </code></pre>