I was wondering how to write a script to automate the process of sending files when connected using cu on a system.

I connect to a system using cu then to send some files I have to type:
~%put FILENAME.ext
for every file.
I would like to write a script so I can use wildcards to send multiple files in a directory to the destination without having to type each and every file.

Anyone know how to do this?

I am currently running SCO Unix 5.0.4