what I'm doing now is make a txt file using batch file output
@echo off
set fname=Logan
set lname=Anderson
set gender=male
echo %fname%>>1.txt
echo %lname%>>1.txt
echo %gender%>>1.txt
Then read that txt using nodejs and use those as nodejs input, but what I want is if it is possible to use batch file output as nodejs input without using this txt file, directly call "nodejs compiled project using pkg" exe file with variables from batch
such as, In batch file
@echo off
set fname=Logan
set lname=Anderson
set gender=male
start "" "mycompiledproject.exe" "%fname%" "%lname%" "%gender%"