Re: Need to change file permission after SFTP
                Again, Please attach a session log file showing upload of the file with the 
You cannot set
        TransferOptions configured to set the permissions. I.e. your original code that you have removed from your very first post. That's the only way that works.
You cannot set
$filePermissions.FilePermissions.Octal = 644. This won't work. It's read-only by purpose.