Something seems to be going wrong with fetching a file to a remote folder where the file already exists. When I delete the file from the remote path the command works fine but when the file already exists it says "is not a file!" instead of overwriting it. I have option confirm set off. The user account has full permission to the remote location (I am running this as domain admin on server) Please see this snippet.
Thanks for your help!