Need help on brutaltester with JS, on windows

I’ve been trying to let this work for days now. Brutaltester kept saying that p1 and p2 gives -1 value which is not allowed. But the same code works fine on IDE.

java -jar cg-brutaltester-1.0.0.jar -r “java -jar spring-2021-1.0-SNAPSHOT.jar” -p1 “node myCode.js” -p2 “node myCode.js” -t 2 -n 1000 -l “./logs/”

I used node.

I’m not sure what’s the problem at this point, but I think it’s cause of the “readline” on JS. so I tried the code below,

const fs = require(‘fs’);
function* __readline() {
let lines = fs.readFileSync(0).toString().split(/\n/);
while(lines.length) yield lines.shift();
}
const _readline = __readline();
function readline() {
return _readline.next().value;
}

But didn’t work saying

let mode = stats[1];
TypeError: Cannot read property ‘1’ of undefined
e[90m at isFileType (fs.js:202:19)e[39m

So, I tried with C++ this time(worked fine on IDE), and it didn’t work neither, giving me -1 values(the same).

I tried to replay it, but it tells me that it cannot find the file below,

cg-brutaltester-master\src\main\resources\view\demo.js

and I don’t have the file.

Some says to work with JS, i should use spidermokey but i have no idea how to use it.
Does anyone know what to do, using JS on windows?