(function() { var shell = this.CreateObject( 'WScript.Shell' ) shell.Run( 'firefox', 9 ); this.Sleep( 1000 ); shell.SendKeys( '{F11}' ); }).call( WScript );