def METHOD_NAME(command, ignore_exit_code=False, **kwargs):
    try:
        result = run_command(command, **kwargs)
    except Exception:
        if not isinstance(command, str):
            command = ' '.join(command)
        abort(f'Error running command: {command}')
    else:
        if not ignore_exit_code and result.code:
            abort(result.stdout + result.stderr, code=result.code)
        return result