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