Example code of a JavaScript action implementation downloading and running a Windows exe installer?

Hi,

Can anyone point me to example code of a JavaScript action implementation downloading and running a Windows exe installer? Preferably, if possible, using JavaScript code instead of calling a bat or ps1 script to do the work.

Thanks,

Paulo