Uten thanks for the link to psexec! With some experimentation it works by telnet/ssh to the local machine (using system switch):-
telnet <ip_addr>
psexec -i -s c:\temp\test.exe
exodius/autoguy100 we are playing with MSN IM interactively using the following simple script:-
Run("C:\Program Files\MSN Messenger\msnmsgr")
WinWaitActive("Windows Live Messenger 8.0 BETA")
Send("!S")
; Check that login successful and close info window
;WinWaitActive("Today")
;WinClose("Today")
; Switch back to messenger and send IM
WinWaitActive("Windows Live Messenger 8.0 BETA", "msn")
Send("<user>")
sleep (2000)
Send("{ENTER}")
WinWaitActive("<user>@hotmail.com - Conversation")
sleep (5000)
Send("Hello {ENTER}")
; Close chat window
WinWaitActive("<user>@hotmail.com - Conversation")
Send("!F")
Send("C")
; Close IM session and logout
WinWaitActive("Windows Live Messenger 8.0 BETA", "msn")
Send("!F")
Send("n")
WinClose("Windows Live Messenger 8.0 BETA")
Again a big thanks to everyone who replied!!