I currently have a script to launch psftp to put a file. I am using the powershell script monitor. What I need is assistance in scripting the return of a successful put or get or a failure.
$file = "file I am putting"
$user = "username"
$pass = "password"
$hst = "host.name"
$path="location of psftp"
$cmd = @("put $file","bye")
script command $cmd | & $path -pw $pass "$user@$hst"