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.

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)