# WRTParameters

A `WRTParameters` object should look something like this:

```javascript
{
    include: null,
    cwd: "c:/user",
    scriptDir: "<anonymous>",
    modulePath: "<anonymous>",
    envType: "normal",
    boxedEnv: null,
    cachedModules: {},
}
```

All of the parameters inside this object are optional.

| Field           | Type                                                                             | Description                                                                                                                                                              |
| --------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `include`       | Function                                                                         | The include function to use for this context. Automatically assigned by WRT.                                                                                             |
| `cwd`           | String                                                                           | The working directory of the script. It is set to the user home directory by default, but is set to the script path's start directory when invoked via `w96.WRT.runFile` |
| `scriptDir`     | String                                                                           | The startup directory of the script.                                                                                                                                     |
| `moduleDir`     | String                                                                           | The directory where the current script/module is contained.                                                                                                              |
| `envType`       | [WRTEnvEnum](https://windows96.gitbook.io/dev-docs/wrt/api-reference/wrtenvenum) | The environment where this script should be executed.                                                                                                                    |
| `boxedEnv`      | Object                                                                           | An object to pass to the execution environment.                                                                                                                          |
| `cachedModules` | Object                                                                           | The cached modules for this script. Automatically assigned by WRT.                                                                                                       |
