for those who are looking here later, there is an npm package that can be used separately from the child process, I'll leave the link for the get-windows package below
npm packet get-windows