Copy Text to clipboard with JSCRIPT

run this in the tools/Opus CLI/Ad-Hoc Script Editor

function GetScriptEngineInfo()
{
    var s= "";
    s += ScriptEngine() + " Version ";
    s += ScriptEngineMajorVersion() + ".";
    s += ScriptEngineMinorVersion() + ".";
    s += ScriptEngineBuildVersion();
    return(s);
}

DOpus.Output(GetScriptEngineInfo());

on windows 11 24H2 you should get JScript Version 11.0.16384 which is a 2024 update to the JScript engine compliant with ECMAScript 2024, otherwise it will be JScript Version 5.something which is a 2009 version.

I think we use this as first line to use the older version

// !JSCRIPTVER=3