def rule(event):
    if all(
        [
            "New-Object " in event.deep_get("ScriptBlockText", default=""),
            "System.DirectoryServices.DirectorySearcher"
            in event.deep_get("ScriptBlockText", default=""),
            ".PropertiesToLoad.Add" in event.deep_get("ScriptBlockText", default=""),
            ".findall()" in event.deep_get("ScriptBlockText", default=""),
            "Properties.name" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
