I'm not sure what to search for this.
I am writing a piece of code using python fire to create a command line interface.
python test.py function argument
is there a way to make the shell interpret the following like the command above:
test function argument
Similar to how I can just call jupyter lab and it will open a notebook etc.
I have a feeling this is more to do with setting up my bashrc or similar instead of something I can do in Python.
Add the hashbang (at the start of the file, in case you don't know) 
#!/usr/bin/env python 
or
#!/usr/bin/env python3
Replace the 3 with whatever version you have installed and want that file to run
Save the file to an already existing PATH or add the file location to PATH
Now you can hopefully run it by typing test.py function argument
Rename test.py to test 
Now you should be able to run it as test function argument
Also make sure your file is set as executable
Command line interface for python module