title: How to define the return type / OutputType of a function
body: <p>Why is the following changing type?</p>
  
  <pre><code>function SomeFunction($SomeParameter){
      return $SomeParameter
  }
  </code></pre>
  
  <p>I guess I need to set a return type, but how?</p>
  
  <p>An example is using:</p>
  
  <pre><code>$NewFolder=Join-Path $CurrentFolder -ChildPath $FolderName
  $Tmp=SomeFunction($NewFolder)
  </code></pre>
  
  <p>Now <code>$Tmp</code> is an array and not just a path</p>