I'm calling a .exe file using powershell script as below.
cmd.exe /c "C:\Users\Desktop\SomeExecutable.exe password:ABCD123"
When the password is correct, the executable runs smoothly.
When the password is wrong, there will be a popup message, saying the password is wrong.
When the popup message appears, powershell script waiting till user closes the pop message.
I want to programatically close this popup message.
Can you throw somelight how to achieve this?