Set wshshell = wscript.CreateObject("WScript.Shell") Wshshell.run "Notepad" wscript.sleep 100 wshshell.sendkeys "Hello World!"