Possibly the issue with your script is that you have an extra "done" in the middle of it. Your main loop will only ever produce one picture, scp it, then the script will exit (possibly with a syntax ...
For those of you wondering what I resorted to as a solution to my “SSH + SCP using PowerShell” posting. I turned to WinSCP. Basically, I just wrote a script that would generate a WinSCP script on the ...