def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("OriginalFileName", default="") == "OpenConsole.exe",
                    event.deep_get("Image", default="").endswith("\\OpenConsole.exe"),
                ]
            ),
            not event.deep_get("Image", default="").startswith(
                "C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal"
            ),
        ]
    ):
        return True
    return False
