Const APP = "d:\program files\GC-PREVUE\gcprevue.exe" 'application
Const OPEN_CMD = "-WK!""%1""" 'command to open a document
Const LAUNCH_WAIT = 5 'number of seconds to wait before launching the application
Const REENABLE_WAIT = 10 'number of seconds to wait before re-enabling secondary monitors

Const POS_ALL = 7
Set sys = CreateObject("UltraMon.System")
sys.SavePositions POS_ALL
sys.SecondaryDisable
WScript.Sleep LAUNCH_WAIT * 1000
Set sh = CreateObject("WScript.Shell")
sh.Run """" & APP & """ " & Replace(OPEN_CMD, "%1", WScript.Arguments(0))
WScript.Sleep REENABLE_WAIT * 1000
sys.SecondaryEnable
sys.RestorePositions POS_ALL