Powershell and Unicode

I’m writing a Powershell script that creates an FTP script and then runs the FTP command using that script. The file created fine and the FTP command ran but the FTP script did not work: $exportDirectory = “\\server\share” $file= “$exportDirectory\test.txt” function FTP-File($FTPusername, $FTPpassword, $FTPfile){       “open 192.168.1.1” > $exportDirectory\ftp.scr       $FTPusername >> $exportDirectory\ftp.scr       $FTPpassword >> $exportDirectory\ftp.scr       “put $FTPfile” >> $exportDirectory\ftp.scr       “quit” >> $exportDirectory\ftp.scr       ftp.exe -s:$exportDirectory\ftp.scr } FTP-File “username” “password” $file After struggling with it for a […]