@if (0 == 1) @end/*!==👩‍✈️==
@rem @echo @=[%@%]

@set ALIBROOT=%~dp0
@rem @call %ALIBROOT%batch\alib.bat
@call "%~dp0batch\alib.bat" %*

::! use x86, since x64 is missing alot of functions
@rem @%ComSpec% /v /c "(set cs=%windir%\SysWoW64\cscript&&IF [%PROCESSOR_ARCHITECTURE%]==[x86] set cs=cscript.exe)&&@%ComSpec% /v /c !cs! //nologo //e:javascript "%~f0" %*"
@set cs=@%windir%\SysWoW64\cscript.exe && @IF %PROCESSOR_ARCHITECTURE% == x86 (set cs=cscript.exe)

@%cs% //nologo //e:javascript "%~f0" %*
@echo on
@if [%ERRORLEVEL%]==[0] (@%SystemRoot%\System32\timeout 0) else (@color CE &@echo err: %ERRORLEVEL% &@pause)
@goto :eof &::==🍵==*/

var fs = new ActiveXObject("Scripting.FileSystemObject");
var _sh = new ActiveXObject('WScript.Shell');
var alib_jse = _sh.ExpandEnvironmentStrings("%ALIB%");
pth = _sh.ExpandEnvironmentStrings("%ALIBROOT%");

try {
  var content = fs.OpenTextFile(alib_jse, 1).ReadAll();
  lib = eval(content);
} catch (e) {
  WScript.echo("ERROR " + e.number + ": " + e.description + " - while loading alib.jse (" + alib_jse + ")\n");
  
  
}

//!--- Processing the client jse
try {
  var this_cmd = sh.ExpandEnvironmentStrings("%@%")
  
  
  
  var cmd_content = fs.OpenTextFile(this_cmd, 1).ReadAll();
  eval(cmd_content);
} catch (e) {
  WScript.echo("ERROR " + e.number + ": " + e.description + " - while loading this_cmd (" + this_cmd + ")\n");
}
