Whenever you use the File Explorer method to batch rename files, you can use the undo function. Command Prompt and PowerShell do not include any undo functionality. Hit "Ctrl+Z" before touching anything else on your keyboard, and the changes become undone. Some users report that the undo function has a short time limit, so undo it as quickly as possible.