function getActionForOperation({ agent, api, tracer, data, operation }) {
  const { command, parameters } = operation
  return (work) => {
    const cmd = camelCase(command)
    logger('RUNING CMD', cmd)
    cmds[cmd]({ agent, api, tracer, data, ...parameters }, work)
  }
}
Adds an operation to the queue to be run

@param {object} params to function
@param {Agent} params.agent agent instance
@param {object} params.api agent api
@param {Tracer} params.tracer otel tracer
@param {object} params.data data passed from previous callback
@param {object} params.operation operation object that defines childOperations and assertions
@returns {function} deferred function to run