Has anyone ever created a script file in sql that is called by server manager from a command prompt and is passed a parameter?

I need to create an sql script that will be fed a parameter from a batch file and I am not sure how to do it.

Batch file accepts parameter then executes svrmgrl which in turn runs a sql script and is fed the parameter accepted by the batch file.

Windows NT 4.0