I am a Powershell noob and seem to keep getting caught on little weird behaviors like this. Here is some test code:
function EchoReturnTest(){
echo "afdsfadsf"
return "blah"
}
$variable = EchoReturnTest
echo ("var: " + $variable)
Running this script generates this as output: "var: afdsfadsf blah"
Why does the function not just return the string "blah"?