KSC Open API
Kaspersky Security Center API description
UserDevicesApi::PostCommand2 ( int  lDeviceId,
wstring  c_wstrCommandGuid,
wstring  c_wstrCommandType,
params  pArguments,
int  lMdmProtocols,
int  lProcessFlags 
)

Posts a command to the specified device.

Note: you can't send more then one command with same type to the specified device while a command with same type is not completed, instead you may call method UserDevicesApi.RecallCommand

Parameters:
lDeviceId(int) device id
c_wstrCommandGuid(wstring) globally unique command instance id.
c_wstrCommandType(wstring) command type, you can retrieve it by calling UserDevicesApi.GetCommandsLibrary, see UMDM commands list
pArguments(params) command arguments
lMdmProtocols(int) bit mask means which protocols will be used to process command (DEPRECATED, just set 0)
lProcessFlags(int) command process flags mean algorithm to process command (DEPRECATED, just set 0)