Amazfish AGPS script

I have got the Huami token script working. Just as matter of getting all the required files installed, some of which I had missed to start with. It runs from the command line and has downloaded the AGPS data packets. I can see the files in the Home folder.

I have been unable to get the script to run from the command line. Perhaps I’m doing something wrong?

I even copied the text from the Huami token script into the file since I knew it worked.

When ever I run the script from the watch the watch disconnects from the phone and then reconnects.

Any ideas? Thanks