Desktop Message code error

Topics: Bugs
Aug 26, 2015 at 10:42 PM
When trying use the desktop menu code to send a message I get

___Exception calling "MsgBox" with "3" argument(s): "Showing a modal dialog box
or form when the application is not running in UserInteractive mode is not a
valid operation. Specify the ServiceNotification or DefaultDesktopOnly style
to display a notification from a service application."
At line:1 char:1
  • [Microsoft.VisualBasic.Interaction]::MsgBox('A restart is scheduled for
    midnight ...___