run command and send response to endpoint
time command and store exit code