@secure_function
def auto_authorize(scope, password=[None]):
    """
    Executes a command on the remote host that causes an authorization
    procedure to be started, then authorizes using the given password