title: In Windows PowerShell, How Can You Set the Maximum CPU % for the Script to Use?
body: <p>I am looking to limit the percentage of the CPU time used by a PowerShell process to a certain number -- for the sake of argument, let's imagine it to be 13%.</p>
  
  <p>Other options that are not precisely what I need:
  1) Setting priority.
  2) Setting CPU affinity.</p>
  
  <p>Basically, we have monitoring software which complains if the total CPU usage gets too high.  We have a daily process that sets this off -- mostly harmlessly, but too many false positives in a monitoring system and people become inured to warnings/errors when we do not wish that.</p>
  
  <p>The process itself gets lsass.exe very excited, too, as it runs, and other processes happen, as well.</p>
  
  <p>I do not know PowerShell and am attempting to fix Somebody Else's Powershell.  Obviously, a ground-up rewrite would be nice at some future point, but for now, bells are ringing and annoying people.</p>