# Powershell - codes popup

##### <span style="text-decoration: underline;">Icons  
</span>

16 – “stop mark”

32 – “question mark”

48 – “Exclamation mark”

64 – “Information mark”

---

##### <span style="text-decoration: underline;">Buttonset  
</span>

0 OK

1 OK, Cancel

2 stop, retry skip

3 yes, no, cancel

4 yes, no

5 retry, cancel

---

##### <span style="text-decoration: underline;">Return values  
</span>

- -1 — timeout;
- 1 — OK button;
- 3 — Stop button;
- 4 — Retry button;
- 5 — Skip button;
- 6 — Yes button;
- 7 — No button.

---

##### <span style="text-decoration: underline;">Intégration Code  
</span>

```powershell
#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>)
```