It's not really a good practice to overwrite the value of a parameter variable like that. Technically, though, you could check the value of $PSBoundParameters['x'] to get at the original argument that was passed in. Personally, I would just use two variable names, even if one is originally initialized as a copy of $x.
↧