def rule(event):
    if all(
        [
            "Invoke-CimMethod " in event.deep_get("ScriptBlockText", default=""),
            "-ClassName " in event.deep_get("ScriptBlockText", default=""),
            "Win32_Product " in event.deep_get("ScriptBlockText", default=""),
            "-MethodName " in event.deep_get("ScriptBlockText", default=""),
            ".msi" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
