If you’re after some inspiration, I have a PowerShell script with a menu that I use which does the following per environment (LIVE, PTU, EPTU, TECH-PREVIEW):
Deletes shaders from AppDataDeletes log files from various locationsDeletes old crash dumpsDeletes EAC folder (with a reminder to validate files after)Deletes USER folderCopies files from one environment to another, deleting all files and folders beforehand except USER and ScreenShots, and skips things like the log files and EAC folder.
You can find it at https://github.com/DeusMaximus/sc-troubleshooting
Thank you