This method returns the given attribute from the command. If attribute is not
found the method returns null.
function onSample()
{
var command = scene.getCommandById("myCmdId");
if (command)
{
var attr = command.getAttribute("action");
if (attr)
{
shell.print(attr);
}
}
}