---
url: /process-functions/script-execute.md
description: Runs another process.
---

# script.execute&#x20;

::: warning Deprecated
Use [`process.execute`](/process-functions/process-execute) instead.
:::

Runs another process and waits for it to finish. Prompt values can be passed to it.

```js
script.execute(processName, promptName1, promptValue1, promptNameN, promptValueN)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `processName` | `string` | The process's name. |
| `promptName1` | `string` | The name of a prompt the process takes. |
| `promptValue1` | `string` | The value for that prompt. Add more name and value pairs as needed. |

## Returns

`true` if the process ran successfully, `false` if it aborted.

## Examples

```js
const success = script.execute("Dimension - Department - Add", "deptName", "Finance");
```
