def rule(event):
    if all(
        [
            "Remove-ADGroupMember" in event.deep_get("ScriptBlockText", default=""),
            "-Identity " in event.deep_get("ScriptBlockText", default=""),
            "-Members " in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
