title: Having a problem running a node script on osx electron app
body: <p>I'm trying to bundle simple sniffer with as ws server in it publishing updates to frontend when some package condition triggered.</p>
  <p>Question is how can I elevate and run this node process with admin privileges(to access network interface) in background. Sudo-prompt works just fine but I'm getting error on startup saying node is not found.</p>
  <pre><code>node: command not found
  </code></pre>
  <p>Stack is:<br/>
  electron: 18.3.0<br/>
  electron-builder: 23.0.9<br/>
  node-cap: 0.2.1<br/></p>
  <p>Is there any best-practices in this subject and how can I possibly run it?</p>