If you know how to use the execute shell command from Script then you can use the following:
ftp -s:filename
This command line start FTP with a File as parameter.
One example of the filename could be:
open myservername
userid
password
cd \cognos\cubes
prompt
mget *.mdc
bye
This will open the FTP connection with the server "myservername" , give the user = userid , send the password , move to another folder ,disable the prompt for confirmation , get all the mdc files from this folder and close the ftp connection.
You can try that from command line , it works also and it s easier to test it.