I've been trying to get the "Deleting remote files after successful remote to local synchronization" script[*] from the examples to work, but without luck. The script runs for 2 seconds and then just ends. No error message. The files on the remote FTP server are neither downloaded nor removed.
I've only changed a few parameters: localpath, remotepath, hostname, username and password. I also commented out SshHostKeyFingerprint.
I added a few Write-Host debug messages to the script in order to see how far it goes, and it seems that it never enters the "foreach ($download in $synchronizationResult.Downloads)" loop.