Executes the named command and passes the specified argument.

public static string ExecuteCommand( 
string cmd
object arg 
)

Parameters

cmd

Type: string

The name of the command.

arg

Type: object

An optional argument that provides relevant context. Typically, this parameter is not required.

Return Value

Text that indicates whether the command succeeded, and if it failed, the reason.