It is the DoEvents method
 Code:
...
While $Form.Visible
  $ = Execute($System.Application.DoEvents)
Loop
...