The issue is that executeScript_Sandbox supports only the older ES5 Javascript commands.
ā Solution: Asking ChatGPT/Claude/Mistral/Gemini/Grok to convert the code to ES5 Javascript solves the issue:
{
"Name": "ES5",
"CreationDate": "2025-3-5",
"Commands": [
{
"Command": "store",
"Target": "\"aaaaa\"",
"Value": "aa",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var title = ${aa};\n\nif (title.charAt(0) === '\"' && title.charAt(title.length - 1) === '\"') {\n title = title.slice(1, -1);\n}\nreturn title;\n",
"Value": "aa",
"Description": "You must use only ES5 compatible Javascript"
},
{
"Command": "echo",
"Target": "${aa}",
"Value": "",
"Description": ""
}
]
}