It isn't possible right now to rename a track from the scripting engine; however, I have created an issue to add this feature (https://jira.transvar.org/browse/IGBF-1097). The scripting engine is something we are going to make extensible with IGB apps to allow anyone to add new scripting commands to perform actions.