Ben Armstrong explains how to run any of previous scripts on a remote Virtual Server instance:
Each script starts by creating a COM object for Virtual Server – usually with a line like this:
set vs = wscript.CreateObject(“VirtualServer.Application”)
To operate on a remote server you just need to change this line to:
set vs = CreateObject(“VirtualServer.Application”, “serverName”)
And you can then continue to script against the remote Virtual Server instance just like it was a local instance.
Read the whole post at source.