wsh is a built-in alias for a WScript that allows you to write
wsh.Echo "foo" wsh.StdErr.WriteLine "bar" wsh.Quit 42
instead
WScript.Echo "foo" WScript.StdErr.WriteLine "bar" WScript.Quit 42
As far as I know, this does not apply to the documentation.
Edit: Apparently, you can work around the problem by specifying wsh as a variable before using it:
Dim wsh Set wsh = CreateObject("WScript.Shell")
However, note that this will completely mask the original identifier, i.e. you cannot return the original behavior without leaving the context in which the variable was defined (which in the case of global variables means restarting the interpreter) because you cannot disable the variable .
source share