I hope to add a wrapper script for the command with different parameters

for example , for any Unix command or script ,like blow
command.sh -s p1 -o p2 -q p3
or
command.sh

Probably we could do as this way
cat wrapper

$1 $2 $3 $4 $5 $6 $7 | tee test.log
(assume it has 0 to 6 parameters)

and use it like


wrapper command.sh -s p1 -o p2 -q p3
wrapper command.sh

It is a little ugly to list all fixed parameter as above, do we have better code to handle various paramters ?

Thanks