Scripting with CASTEP to create input files for standalone mode

Hi,

Basically I am trying to write a script to create the .cell and .param files for various DFT methods and settings to be run on a server in standalone, however after searching around the various help topics I could not find anything on the subject.

I can perform the task very easily from the GUI with two clicks (via Files | Save Files) so the solution must be simple, however I have been completely unable to find it so any help would be greatly appreciated.

Thanks,

John