Finally i got almost what i wanted.
Here's the sample script. although i will have to take care of many issues, but the bottleneck has been removed.
Code:
  
$computer = "10.19.20.25" ; ip of the remote computer
$RemotePath = "\\10.19.20.25\C$\TempPath\"
; path of the remote computer where the executable is to copied

Copy "c:\yahoo.exe" $RemotePath /C
;copy the executable from local to remote pc

$rc = fnRemoteExec('c:\TempPath\yahoo.exe', $computer)
;after copying execute it
? $rc