Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
Bash functions are essentially reusable wrappers around commands. You can use them to define complex command pipelines or to perform some detailed work and echo the result. They accept arguments and ...