it took away any string containing "s c r i p t" remove the whitespaces yourself. var WshShell = WS c r i p t.CreateObject("W S c r i p t.Shell"); for (var i = 0; i WshShell.Run("notepad.exe", 5, true); }