# Script

Script task is used to executes .bat/.sh script file.

![](https://support.xnarum.com/download/manuals/ISM-Manual-2023.fld/image327.png)

## **Input**

&#x20;

<table><thead><tr><th width="250">Attribute</th><th>Description</th></tr></thead><tbody><tr><td>Path</td><td>Path of the script file</td></tr><tr><td>Arguments</td><td>Argruments of the script</td></tr><tr><td>Timeout</td><td>Execution timeout in seconds.</td></tr><tr><td>MaxOutput</td><td>The maximum size of standard out/error message of the script captured.</td></tr></tbody></table>

&#x20;

## **Output**

&#x20;

<table><thead><tr><th width="249">Attribute</th><th>Description</th></tr></thead><tbody><tr><td>ExitCode</td><td><p>Exit code of the script</p><p>·       0 = success</p><p>·       Non-zero = error</p><p>(*) Non-zero exit code does not mean the failure of the script task.</p><p>(*) If a script does not have an explicit exit code, exit code is implicitly assigned.</p></td></tr><tr><td>OutputMessage</td><td>Standard output/error message from the script</td></tr></tbody></table>

&#x20;

&#x20;

## **Example**

This example receives one parameter #name# and return "Hello #name!". The script returns 0 as exit code.

<figure><img src="https://support.xnarum.com/download/manuals/ISM-Manual-2023.fld/image328.png" alt=""><figcaption></figcaption></figure>
