I think this
cmd.AddLine = "@runmode:hide"
should be done like this. (note js)
cmd.SetModifier("runmode", "hide");
Perhaps both methods work, but that is now I did it in this script where I was executing an external resource.
As for the message box, this might help Stackoverflow link
[code]set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActive "your message here"
'do some work, run you dopus command here
'send command to message box to close it
WshShell.SendKeys "%N"[/code]
I didnt test this :s