An ftpshell script can be run from the command line using the -script switch.
ftpshell -script <script file name>