Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
A while back, I developed a PowerShell script that I use for creating air gapped backups of my file data. Even though I put a lot of effort into building this script and testing it over and over again ...