How to use ruby script file with parameter?

Did you look at the script_params option described in the documentation?