title: Import functions in a script with parameters
body: <p>I have a script with parameters:</p>
  
  <pre><code>param (
      [Parameter(Mandatory=$true)][string]$VaultName,
      [Parameter(Mandatory=$true)][string]$SecretName,
      [Parameter(Mandatory=$true)][bool]$AddToMono = $false
   )
  ...
  </code></pre>
  
  <p>In this script I want to include functions that I wrote in another ps1 file : common.ps1</p>
  
  <p>I usually import this with </p>
  
  <pre><code>. .\common.ps1
  </code></pre>
  
  <p>but if I do that in the script I get:</p>
  
  <pre><code>The term '.\common.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
  path is correct and try again.
  </code></pre>
  
  <p>How do I import common.ps1 in this script?</p>
  
  <p>Thanks!</p>