Renaming Drive files

Hi all

I am writing a script to rename a group of files in a user’s drive, some of them need to have a number on the end, I have searched the whole site but can’t find a command to put an ascending number on each file.

Can you please advise if this is possible?

Thanks in advance

Kieran