title: New-PSDrive inside a module doesn't work
body: <p>I have a module, which is auto-loaded, where I put my everyday functions and variables.</p>
  
  <p>In the hope that a PSDrive is always here when I start a PowerShell session, at the very beginning of  MyPSModule I call:</p>
  
  <pre><code>$script_directory = 'D:\scripts\'
  New-PSDrive -Name Scripts -root $script_directory -PSProvider FileSystem
  </code></pre>
  
  <p>However, after I open a new PowerShell environment, and that my module is loaded: <code>Get-PSDrive</code> doesn't list my drive. ( I'm sure my module is loaded, I called some of its functions, I even re-imported with <code>-Force</code>, and <code>Import-Module -Verbose</code> doesn't show any errors )</p>
  
  <p>I have to manually call: <code>New-PSDrive -Name Scripts -root 'D:\scripts\' -PSProvider FileSystem</code>.
  Only in such a case will <code>Get-PSDrive</code> list my drive.</p>
  
  <p>What is wrong ? What should I do so as the PSDrive is created at the loading of my module ?</p>