Syntax to programmatically give a command to an Object?

See related discussion at: Generating actions through code where player is not the actor.