Powershell - codes popup
Icons
16 – “stop mark”
32 – “question mark”
48 – “Exclamation mark”
64 – “Information mark”
Buttonset
0 OK
1 OK, Cancel
2 stop, retry skip
3 yes, no, cancel
4 yes, no
5 retry, cancel
Return values
-
-1 — timeout;
-
1 — OK button;
-
3 — Stop button;
-
4 — Retry button;
-
5 — Skip button;
-
6 — Yes button;
-
7 — No button.
Intégration Code
#creating object os WScript
$wshell = New-Object -ComObject Wscript.Shell -ErrorAction Stop
#invoking the POP method using object
$wshell.Popup("Are you want to continue from here?",<time in second>,"Hello User?",<icon>+<buttonsSet>)