sendCommand() expression

The most useful resource is searching this forum for examples. As well as problem+solution posts like this one, where even the struggles inbetween can be educational, there are useful guides like