def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\schtasks.exe"),
            " /create " in event.deep_get("CommandLine", default=""),
            " /sc once " in event.deep_get("CommandLine", default=""),
            "\\Temp\\" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
