I have a PowerShell script that inadvertently triggers popups asking the user for permission. For example, in the code:
$appt = $outlook.CreateItem("olAppointmentItem")
....
$appt.Send()
I have this PowerShell script running in a server that creates appointments, and the popups serve no purpose. How can I run my script without having Windows ask permission?
FWIW, I found one, admittedly suboptimal, workaround for this problem. There is, almost unbelievably, but then again not really, a tool that clicks “yes” whenever a popup appears, the eponymous Click Yes.