def rule(event):
    if all(
        [
            any(
                [
                    "Add-AppPackage " in event.deep_get("ScriptBlockText", default=""),
                    "Add-AppxPackage " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            " -AllowUnsigned" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
