Yes, that's exactly how I'm doing it...
it's a bit complicated until you get your mind wrapped around it..
the basic method is:
mycmd = Command.new(from, to, priority, type, id)
mycmd.params_[x] = y
Command is a command object (already defined by pluto) and new initializes a new Command..
SendCommand is a function (already defined by pluto)
everything else, you define in your code..
from is the device ID (you) (integer)
to is the device ID to. (normally, -1000 for a command, or -1001 for an event) (integer)
priority is an integer
Type (integer) is 1 for command, 2 for event
id is the command/event ID (integer) you want to send
to set the params,
x (integer) is the parameter you want to set
y (STRING) is the value you want to assign to x.