Need help decrypting a lot of files

I have a little over a million .pdf documents that were encrypted using software from a vendor we no longer work with.  All the documents were encrypted using Mike Shaffer’s RC4 script.  I have the secret key but I’m not sure how to go about removing the encryption from all the files and folders.  Any help in the right direction would be greatly appreciated.

Thank you!