bash script execution with a variable in a single line

Let a script needs a variable to execute. For example if i run ./test.sh then it needs a variable as there is a <STDIN> in the script. I want to execute it as [>script_name variable] in command line.
Let test.sh requires a variable name $number I want to execute it by
>test number <enter>

how is it possible?

I've been wondering that myself. I think it's magic. :stuck_out_tongue:

Now, show us what you've tried so far.