We turn to two cmdlets:
Set-Variable. They may seem redundant as we get and set variables all the time without those. Maybe you have even never heard of these two cmdlets.
Well here they prove their usefulness:
we will set the variables using their names, and use the current value as a starting point.
An important rule to remember is this:
$is a token to indicate we’re dealing with a variable, but it is not part of the variable name!
It’s worth reading the whole thing.