# IControllable.ExecuteCommand(int, object)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.providers.icontrollable/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.providers.icontrollable/methods/)

```csharp
public abstract Task<object> ExecuteCommand(int command, object arg)
```

A function to execute a control command.

### Parameters

- `command` (`int`): A serial number of the command.
- `arg` (`object`): An opaque command argument.

### Returns

The value returned from the command handler.
