def rule(event):
    if any(
        [
            all(
                [
                    "Import-Module " in event.deep_get("ScriptBlockText", default=""),
                    "Microsoft.ActiveDirectory.Management.dll"
                    in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            "ipmo Microsoft.ActiveDirectory.Management.dll"
            in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
