The below code is working fine if I run independently as a node :
var execSync = require(\'child_process\').execSync; var cmd