In my Observatorium I use a RCW box for remote control fo power switches.
For switching ON or Off a relais in a *.vbs script, I use following code:
Set TCW = CreateObject ("WScript.Shell")
TCW.Run "c:\usr\bin\snmpset.exe -v 1 -c private integer 1" 'R1 ON
set TCW = nothing
What would be the equivalent code for eg the SampleShutdownObs.js script?