In windows default FTP client and the moveit freely FTPS client the ftp macro interprets ! to mean start a command shell and run some local command such as "!myprogram.exe" inside the session.
Argueably I can do these before and after the session, but
The GUI mode allows custom commands to execute locally or remotely
but it's not apparent how to or if I can start a local command shell from script. :?