I have a modal message box that I want to close programmatically but it has the same process name as the executable. In windows task manager under the applications tab the message box has a different task name than the executable.
With powershell how can I identify the message box and close it without closing the executable at the same time?