can anyone help me turn code into a function in Powershell?
I previously made a post about a tool for deleting files and directories older than x days.
See: