How do I create a button from a Renaming Script

Have a look at this thread from earlier today.

There are also a few examples in the Rename Scripting and Buttons forums if you need more, but the basic structure is in the thread I linked above.