title: PowerShell 2.0 current script function should override module one
body: <p>Let's say there is:</p>
  
  <p><em>Main script file:</em></p>
  
  <pre><code>function Test
  {
     Write-Host "Hello from sctipt"
  }
  
  Import-Module SomeModule.psm1
  
  Test
  </code></pre>
  
  <p><em>SomeModule.psm1 content:</em></p>
  
  <pre><code>function Test
   {
      Write-Host "Hello from module"
   }
  </code></pre>
  
  <p>If I run the main script - the output would be "Hello from script". This module contains a lot of functions that add new functionality. However, in a single case I need to be able main script function to override module one.</p>
  
  <p>In the documentation it is listed, that one can use fully qualified function names, including the module name to call the right function instance. However I can not find how to make referrence to the local one.</p>
  
  <p>Have someone solved such problem? The issue is also that I restricted to run <em>PowerShell 2.0</em>, which does not have -NoClobber option while importing the module.</p>