Hello,
How could I have the logs of my powershell tasks during the execution? Because for the moment, I am only able to write the result of my execution when the powershell execution is finished and that is an issue for the long running tasks because we have the feeling that nothing happen.
Here is the function I currently use:
const child_process = require('child_process');
const exec = child_process.exec;
function executePS(scriptPath, callback) {
exec("Powershell.exe -executionpolicy remotesigned " + scriptPath, function (err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
callback(err);
});
}
exports.executePS = executePS;
Regards,
Hello,
How could I have the logs of my powershell tasks during the execution? Because for the moment, I am only able to write the result of my execution when the powershell execution is finished and that is an issue for the long running tasks because we have the feeling that nothing happen.
Here is the function I currently use:
Regards,