code: async function executeCommand(command){
      // execute command
      await write(command + '\n');
  
      // fetch echo
      const data = await getNextResponse();
  
      return {
          echo: data.echo,
          response: data.response
      };
  }
docs: send a command to the lua engine and capture command echo and output (response)