Elevate NodeJS/Electron process on Windows
I did file writes using use node-powershell module :node-powershell
const ps = new Shell({ executionPolicy: 'Bypass', noProfile: true});ps.addCommand(`Start-Process -WindowStyle hidden cmd -Verb RunAs -ArgumentList '/c mkdir "C:\\Program Files\\foo"'`);