Press Any Key @ end of silent uninstall

I have an application I am trying to uninstall. Before I can install the new version.

For some odd reason, the vendor makes you “press any key” to finish the uninstall of the application. (They have provided the silent uninstall commands, but not really silent.

Is there any way for a key to be pressed to finish the uninstall in the powershell script?

Have you tried using the Send-Keys function?

Send-Keys -WindowTitle ‘foobar - Notepad’ -Key ‘Hello world’

You may need to use Get-WindowTitle to find the Window title first…