def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\wscript.exe"),
                    event.deep_get("Image", default="").endswith("\\cscript.exe"),
                    event.deep_get("Image", default="").endswith("\\mshta.exe"),
                ]
            ),
            any(
                [
                    ":\\Perflogs\\" in event.deep_get("CommandLine", default=""),
                    ":\\Temp\\" in event.deep_get("CommandLine", default=""),
                    ":\\Tmp\\" in event.deep_get("CommandLine", default=""),
                    ":\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                    ":\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Roaming\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\Start Menu\\Programs\\Startup\\"
                    in event.deep_get("CommandLine", default=""),
                    "\\Temporary Internet" in event.deep_get("CommandLine", default=""),
                    "\\Windows\\Temp" in event.deep_get("CommandLine", default=""),
                    "%LocalAppData%\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "%TEMP%" in event.deep_get("CommandLine", default=""),
                    "%TMP%" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    ".hta" in event.deep_get("CommandLine", default=""),
                    ".js" in event.deep_get("CommandLine", default=""),
                    ".jse" in event.deep_get("CommandLine", default=""),
                    ".vba" in event.deep_get("CommandLine", default=""),
                    ".vbe" in event.deep_get("CommandLine", default=""),
                    ".vbs" in event.deep_get("CommandLine", default=""),
                    ".wsf" in event.deep_get("CommandLine", default=""),
                    ".wsh" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
