title: Use powershell to populate dialog box from another program
body: <p>I am writing a script to uninstall and reinstall a piece of software.</p>
  
  <p>Annoyingly, you have to enter a password as part of the uninstall process. (i.e. the uninstaller pops up with a box, the user enters a password to continue)</p>
  
  <p>I want to be able to detect the dialog box, and enter the password automatically - so the user doesn't have to do anything. I seem to remember there's a way to do this, but not sure how.</p>