How to work around multiple internal commands and windows not updating

Option 1: The issue is probably unrelated, and not fixable with this script
Option 2: Yes
Option 3: Not an option (As Leo has already explained)

Option 4: Switch to a Rename script and use custom fields