What’s valid for function is valid for scripts as well … you simply provide a param block in your script and specify the parameters you want to work with.
I’d recommend using named parameters instead of positional ones. This way you dont have to remember the order if you have more than just 2 parameters for example.