title: Do until in Windows Powershell
body: <p>I'm trying to stick the cursor of my coworker to the upper left corner of his Display. I'm doing it with a <code>do until</code> Loop. The only way to disrupt the script should be when the $FilePath has more childitems than "5". Any idea why this does not work?</p>
  
  <pre><code>$FilePath = "I:\TRANSFER"
  $test = Get-ChildItem $FilePath
  do {[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
  [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(0,0)
  $test.count}
  until ($test.count -gt '5')
  </code></pre>