The enviroment

Window.GetEnvironmentVariable("Name"):

Window.SetEnvironmentVariable("Name","Value"):

The GetEnvironmentVariable function retrieves the value of the specified variable from the environment block of the calling process.

The SetEnvironmentVariable function sets the value of an environment variable for the current process.

Here's an example:
// File: environment.w_js (JScript)
    Window.width = 40 * Window.cxChar;
    Window.height = 20 * Window.cyChar;

var PATH = Window.GetEnvironmentVariable("PaTh");
    Window.AddControl(800,5,0,0,120,160,PATH);

Window.SetEnvironmentVariable("REMARK","TRURL");
// File: environment.w_vbs (VBScript)
    Window.width = 40 * Window.cxChar
    Window.height = 20 * Window.cyChar

    PATH = Window.GetEnvironmentVariable("PaTh")
    Window.AddControl 800,5,0,0,120,160,PATH

    Window.SetEnvironmentVariable "REMARK","TRURL"
content
The new scripting host. It is not wscript.exe!
JScript and VBScript are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.