To rename a script, simply change the name in the code and save the script. The name is on the top line of the script's code.
Then, delete the old script.