title: How to schedule a task in Node.js that runs after script has exited?
body: <p>In writing an Electron app, I've found the need to execute a background task that will run even when the UI has exited. An installer will be distributed to different computers, so I need a way to schedule a recurring task either in the installer or in code that gets run as part of the Electron app process. I've looked into libraries like bree and agenda, but I haven't been able to find a way to schedule in the aforementioned manner with these libraries.</p>
  <p>How would I a) extend the functionality of the installer to schedule the task with native tools like Windows Task Scheduler or b) schedule this sort of recurrent task from my Electron app?</p>