Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
If programming or scripting in general scares you, you don't need to worry either. You don't need to be a programming wizard ...