WindowsScript.ExecuteStatement
------------------------------

Executes a statement.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsScript](component_WindowsScript.md) | [1.1](newinversion11.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WindowsScript.ExecuteStatement"; ScriptID; Script ) 

**MBS**( **"WindowsScript.ExecuteStatement";** /\* Executes a statement. \*/  
**$ScriptID**; /\* The ID of a WindowsScript in memory.e.g. 0 \*/   
**$Script**) /\* The script command. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScriptID | The ID of a WindowsScript in memory. | 0 |
| Script | The script command. |  |

### Description

Executes a statement.  
### See also

- [WindowsScript.ExecuteFunction](WindowsScriptExecuteFunction.md)

This function is free to use.

Created 18th August 2014 , last changed 17th July 2022

  
[WindowsScript.ExecuteFunction](WindowsScriptExecuteFunction.md) - [WindowsScript.GetAllowUI](WindowsScriptGetAllowUI.md)

[HTML Version](WindowsScriptExecuteStatement.shtml)