# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ism-docs.xnarum.com/tasks/others/script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
