Decrypt files that have been download

Hi,

I have a set of files I want to decrypt via powershell. I usually open Kleopatra,select the file I want to decrypt, input my decryption password and all works fine.

Although I want to automate this process via powershell.

I’ve been having a look at this https://gallery.technet.microsoft.com/scriptcenter/Encrypt-and-Decrypt-Files-214db670

When I use that, I only use the Remove Decryption but it does not work. Any ideas? I want to be able to decrypt any files that are in the folder.