1const { execSync } = require('child_process');
2
3const output = execSync('ls', { encoding: 'utf-8' });
4
5console.log('The output is:');
6console.log(output);
1var objShell = new ActiveXObject("Shell.Application");
2 objShell.ShellExecute("cmd.exe", "C: cd C:\\pr main.exe blablafile.txt auto", "C:\\WINDOWS\\system32", "open", "1");
3//NOTE: ONLY WORKS ON WINDOWS AS I KNOW OF