def rule(event):
    if any(
        [
            all(
                [
                    "New-CimInstance " in event.deep_get("ScriptBlockText", default=""),
                    "-Namespace root/subscription "
                    in event.deep_get("ScriptBlockText", default=""),
                    "-ClassName __EventFilter " in event.deep_get("ScriptBlockText", default=""),
                    "-Property " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
            all(
                [
                    "New-CimInstance " in event.deep_get("ScriptBlockText", default=""),
                    "-Namespace root/subscription "
                    in event.deep_get("ScriptBlockText", default=""),
                    "-ClassName CommandLineEventConsumer "
                    in event.deep_get("ScriptBlockText", default=""),
                    "-Property " in event.deep_get("ScriptBlockText", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
