"const { exec } = require('child_process');
exec('Get-Process', {'shell':'powershell.exe'}, (error, stdout, stderr)=> {
console.log(stdout);
})" | Out-File ejecutarpower.js -Encoding utf8
node .\ejecutarpower.js

"const { exec } = require('child_process');
exec('Get-Process', {'shell':'powershell.exe'}, (error, stdout, stderr)=> {
console.log(stdout);
})" | Out-File ejecutarpower.js -Encoding utf8
node .\ejecutarpower.js
