You can access the win32 api in Node via Koffi. Here's a MessageBox example: https://koffi.dev/start#for-windows
Also see node-activex (https://github.com/durs/node-activex)
AHK2's syntax is also very close to Javascript these days. It's quite pleasant to use and the C++ source is very well-documented.
Don't get me wrong... powershell is really nice for some kinds of IT work, but I've had lots of trouble with it. I love the succinct nature, but it takes a lot of effort to get a line of code to do what you need it to do...even after you've spent a LOT of time with the language.
PS C:\> Find-SuccinctNature PowerShell -ComparedTo Bash
Find-SuccinctNature: Object not foundPlus if performance matters, rewriting the critical part in a .NET language is always an option.
There's a free Community Edition: https://www.embarcadero.com/products/delphi/starter/free-dow...
Maybe such a big solution is not needed for tiny sized projects ?
Maybe we don't need fatty big executables for the ease of deployment ?
Excited to look how LuaRT exposes WinAPI, my ideal would be one global namespace where you can easily auto-import all the normal functions. Microsoft has made it somewhat easy for library authors to generate the externs with their relatively new Win32metadata package: https://github.com/microsoft/win32metadata