Promise for run command with administrator privilege and hide mode.
npm install runas-winsh
npm install runas-win
`
Use
`js
import runasPromise from 'runas-win'
runasPromise('node', ['-v'], {hide:false, admin:true})
.then(()=>console.log('finish'));
`
$3
* options Object
* hide Boolean - Hide the console window, true by default.
* admin Boolean - Run command as administrator, false` by default.