'Executes the given ``command`` and reads, logs, and returns everything until the prompt.
This keyword requires the prompt to be [#Configuration|configured]
either in `importing` or with `Open Connection` or `Set Prompt` keyword.
This is a convenience keyword that uses `Write` and `Read Until Prompt`
internally. Following two examples are thus functionally identical:
| ${out} = | `Execute Command`   | pwd |
| `Write`  | pwd                 |
| ${out} = | `Read Until Prompt` |
See `Logging` section for more information about log levels and `Read
Until Prompt` for more information about the ``strip_prompt`` parameter.'

def execute_command(self, command, loglevel=None, strip_prompt=False):

    self.write(command, loglevel)
    return self.read_until_prompt(loglevel, strip_prompt)
