I am trying to automate a small program to install hp drivers, however I cannot seem to find the title of the second window so I can pass ~ through as an enter key. the code works on the first part but not the second. any ideas on how I can get the name for this title screen

would be cool, thanks.
Powershell
$wshell=New-Object-ComObjectwscript.shell;$wshell.AppActivate('Open File - Security Warning')Sleep1$wshell.SendKeys('~')$wshell=New-Object-ComObjectwscript.shell;$wshell.AppActivate('')Sleep1$wshell.SendKeys('~')