Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
Once a developer finishes writing code and it works, it can feel like the job is done. It is not. The job is over when the code is refactored and cleaned up. Developers inevitably work to a deadline ...