You can now pass a script and parameters as command line arguments. This script will be executed immediately.
$ extrema --script "testIt.pcm 50 90 'some <alpha> string'"
will execute the script testIt.pcm with 3 parameters.
For the Windows version, you would have to open the properties for the extrema icon and modify the Target field.