Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
Try to say that title five times in a row… Maybe this posting can be classified as a stupid PowerShell trick. Or, it’s just me blabbing on about how I wish error ...