If 3rd party tools is not an option then you could use WMI.
See the fRunRemoteCMD() function below:
'<------ START VBSCRIPT CODE --->
Call fRunRemoteCMD("notepad.exe", "192.168.1.2")
'******************************************************************************
'* Name: fRunRemoteCMD(ByVal strCmd, ByVal strComputer)
'* Description: Uses WMI to create a process to execute
' strCmd on strComputer
'******************************************************************************
Function fRunRemoteCMD(strCmd,strComputer)
Dim objWMI
Dim errReturn
Dim intProcessID
If Len(strCmd) > 0 and Len(strComputer)> 0 Then
Err.Clear
On Error Resume Next
Set objWMI = GetObject("winmgmts:{impersonationLevel=impersonate}" _
& "!\\" & strComputer & "\root\cimv2:Win32_Process")
If Err.Number <> 0 Then
'Couldn't connect to WMI on remote machine
Wscript.Echo Err.Number & Err.Description
Exit Function
End If
On Error GoTo 0
Wscript.Echo UCase(strcomputer) & ":"
WScript.Echo vbTab & "Running CMD: " & strCmd
errReturn = objWMI.Create(strCmd, null, null, intProcessID)
If errReturn = 0 Then
Wscript.Echo vbTab & strCmd _
& " was started with a process ID of " & intProcessID
Else
Wscript.Echo vbTab & strCmd _
& " could not be started due to error " & errReturn
End If
Set objWMI = Nothing
End If
End Function
'<------ END VBSCRIPT CODE ---->