title: Time conditioned 'For' loop in Powershell
body: <p>What I am looking for is a Powershell version of this: <a href="https://stackoverflow.com/questions/11176284/time-condition-loop-in-shell">Time condition loop in shell</a></p>
  
  <p>So I can have something like this:</p>
  
  <pre><code>if(Condition -eq True){
      for(3000){         #I assume it will use milliseconds
          COMMAND
      }
  }
  </code></pre>
  
  <p>EDIT: This will not be running continuously, unlike the example, it could be triggered at any time, and when the time ends, it should exit out of the loop and resume the program as normal.</p>