Quickly rename a bunch of files via PowerShell

Each time I do PowerShell now, it saddens me. I haven’t used it much for the past year I am slowly forgetting even the basic stuff. I really must do some PowerShell coding project soon just to amp up my skills. 

Anyhoo, I needed to rename a bunch of files quickly today. Used the following to rename them:

The files were of the format “The Title (digital) Extra Stuff.cbz“. I wanted to rename it such that the new file name is only the underlined parts. Above code does that to a directory full of such files.