I have a Powershell script which scheduled to run overnight on several hosts. It executed by CMD script (wrapper) that set in the Task Scheduler.
In some cases I need to display a message to the user which will arrive in the morning and let him decide whether to continue the execution of the script or to abort it.
I'm using system.windows.froms.MessageBox::Show("My Message","status","4") in order to display the message.
It works perfectly when I executing the CMD script from windows PowerShell ISE console, however if I executed it from the task scheduler it skips the popup message.
Is there any solution for that issue?