Command Line Scripting

I have an external program linked to Repetitive invoicing. I need to associate the program to repetitive invoicing by passing parameters.
How to pass the Customer Number listed in the data reference as parameter to a command script ?