Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
C# finally gets the BASIC GOSUB feature through local functions, but local functions take that GOSUB-like capability up a few notches. If you're an old-timer like me, you probably remember the ...