XPLMCommandOnce
XPLM_API void XPLMCommandOnce(
XPLMCommandRef inCommand);
This executes a given command momentarily, that is, the command begins and ends immediately. This is the equivalent of calling XPLMCommandBegin() and XPLMCommandEnd() back to back.