Can I use the VBScript MsgBox function?

No. Instead, you can also use the alert function, the confirm function, or WScript as shown here.