i think you need to load the script in the script editor first before you can execute it. another thing is once it is executed Maya retains it in local memory. I had a problem where i had to quit Maya and reopen the scene file to refresh it if i made any changes, otherwise Maya will keep sourcing the first executed script. hope that helps... Lori