We are using the Kantu RPA UI automation tool (see [login to view URL]). It has a Powershell example script at [login to view URL]
The same script is available in Python at [login to view URL]
So you can use either the Powershell version or the Python version as starting point.
We need this script converted to Node.js (10.16.3 LTS). It should work on Windows, macOS and Linux (Ubuntu).