Thank you very much Martin.
It worked as expected.
I have this client which has an FTPS server and I need to copy files to him. I have a "working" script that will successfuly copy what I need and it will even return an Ok message "226-Transfer Complete". However, the destination will programatically drop the files if doesn't receive a QUIT command from my side right after the file is sent. Is it possible to send a raw QUIT command to meet the server requirements ? Thank you in advance.