It should be run from the repo folder. The idea is that script could be used on jdroid or any other project. You should create an alias with the parameter values for each project. I have plans to create a jdroid-scripts directory with all these useful scripts.
The oauth token can be obtained from Account Settings -> Applications -> Personal Access Tokens