def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\schtasks.exe"),
            "/Create " in event.deep_get("CommandLine", default=""),
            any(
                [
                    '/TN "{' in event.deep_get("CommandLine", default=""),
                    "/TN '{" in event.deep_get("CommandLine", default=""),
                    "/TN {" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    '}"' in event.deep_get("CommandLine", default=""),
                    "}'" in event.deep_get("CommandLine", default=""),
                    "} " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
