Today while teaching a PowerShell class I got the question about how to produce simple forms and dialogs. I just did some .net loading and away I was. During the following lab I wrote a small wapper to mimic the behaviour of VBScripts MsgBox. It’s a very simple scripts, accepts four string inputs: title, message, buttons (like OK, YesNo etc) and icon (None, Hand, Warning etc). The return from the script is also converted to a simple string to make it easy to implement and compare. Use it if you like it.