Why do the Write-Host outside of the function work different than inside of the function?
It seems like somehow the parameters variables are changing from what I declared it to be...
function a([string]$svr, [string]$usr) {
$x = "$svr\$usr"
Write-Host $x
}
$svr = 'abc'
$usr = 'def'
Write-Host "$svr\$usr" # abc\def
a($svr, $usr) # abc def