I was thinking it's of more use where the number of parameters is unknown.
Say you have a script to update a computer. You might want to update 1, 2 or who knows how many.
You could call the script one at a time:
Code:
kix32.exe update.kix $COMPUTER=WS001
kix32.exe update.kix $COMPUTER=WS002
kix32.exe update.kix $COMPUTER=WS003
However it makes more sense if you can call the script with any number of parameters:
Code:
kix32.exe update.kix $COMPUTERS="WS001 WS002 WS003 ... WS999"
Equally, you might have options / switches. It's a pain to have to assign each switch to a variable, much easier to do something like:
Code:
kix32.exe myscript.kix $ARGV="-s -t -m WS002 -m WS003 -v5"
Rather than having to remember something onerous like:
Code:
kix32.exe myscript.kix $SILENT=Y $TOP=Y $MACHINE1=WS002 $MACHINE2=WS003 $VERBOSEREPORTLEVEL=5