title: Call a function in the PowerShell Terminal Window
body: <p>i writed this simple function in visual studio code:</p>
  <pre><code>def example(x):
      for i in range(0,x):
         print(i)
  </code></pre>
  <p>and the code runs in the visual studio editor, but when a i try to call the function in the terminal:</p>
  <pre><code>example(11)
  </code></pre>
  <p>The output is the following error:</p>
  <pre><code>The term 'example' is not recognized as the name of a cmdlet, function, script file or 
  executable program. 
  Check if you typed the name correctly, or, if you included a path, check that the path is 
  correct and  try again.
  Inline: 1 Character: 1
  + example(11)
  + ~~~~~~~
  + CategoryInfo : ObjectNotFound: (example:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>