In my powershell LogOn-Script (for a XenApp-farm) I want to include the option to show a "Message-Box" for the users.
Meaning: The users is starting its application and during the startup he has something to read (Message of the day, security-advices, important annoucements, ...).
Problem:
If I call the messagebox with [System.Windows.Forms.MessageBox]::Show(„<<<Announcement<<<“,“Header123“,0)
the script won't continue until the user clicks "Ok".
Idea of solution: I want to call a second powershell-script, which is opening the Message-Box. Unfortunately the calling script (LogOn-script) is wating for the called script to finish (until the user clicks "OK"). Is there a way to get around this...? (I don't want to call a CMD-Script for this...)
Please note, that the intention of the question is to run two scripts in parallel with the idea of one script calling the other script and the calling script should continue runnng, no matter what the called script is doing.
Thank you in advance!