Bates Numbering Native Files with PowerShell

When facing the possibility of producing native files with Bates numbers, I did some research as to how to add these numbers to the files without changing the contents. To summarize most blog posts on the subject, Bates numbering of native files is possible via alteration of the filename. Thus, I’ve created a PowerShell script that generates and prepends Bates numbers to native files, available here:

The script is very bare-bones: it is meant to be run on a single directory of files with no sub-folders.