If declaring a variable and then assigning an implementation seems like a lot of typing, you can declare the variable and assign an implementation function in a single statement. This example defines ...
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.