title: Calling Echo inside a function pre-pends echo string to return value in Powershell
body: <p>I am a Powershell noob and seem to keep getting caught on little weird behaviors like this.  Here is some test code:</p>
  
  <pre><code> function EchoReturnTest(){
       echo "afdsfadsf"
       return "blah"
   }
  
   $variable = EchoReturnTest
   echo ("var: " + $variable)
  </code></pre>
  
  <p>Running this script generates this as output: "var: afdsfadsf blah"</p>
  
  <p>Why does the function not just return the string "blah"?</p>