This code waits for the process to finish before spawning a new one.
Set ArgObj = WScript.Arguments
Set WshShell = CreateObject("WScript.Shel
l")
For Each strArg in ArgObj
Set objExec = objWshShell.Exec("pscp -r -pw KornShell321
[email protected]:/var/o
pt/soe/loc
al/harden/
harden-his
tory/"&str
Arg& "/* C:\Test_Data")
Do while objExec.Status=0
WScript.Sleep 100
loop
Next