title: Powershell v4 not importing module automatically
body: <p>I am using <code>Microsoft PowerShell v4</code>:</p>
  
  <pre><code>PS C:\&gt; get-host
  
  Name             : ConsoleHost
  Version          : 4.0
  InstanceId       : 3b4b6b8d-70ec-46dd-942a-bfecf5fb6f31
  UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
  CurrentCulture   : de-CH
  CurrentUICulture : en-US
  PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
  IsRunspacePushed : False
  Runspace         : System.Management.Automation.Runspaces.LocalRunspace
  </code></pre>
  
  <p>I have developed a <strong>C#</strong> project in <strong>Visual Studio 2012</strong> targeting <strong>.NET Framework 4</strong> which contains some <code>Cmdlet</code> and the <code>Snapin</code>. I can debug them and everything works just fine.</p>
  
  <p>I've created the path <code>C:\PowerShell\Modules\</code> and added it to the <code>PSModulePath</code> environment variable.</p>
  
  <p>I put the r<code>MySnapIn.dll</code> to the path <code>C:\PowerShell\Modules\MySnapIn</code>.</p>
  
  <p>I would expect that the module is automatically loaded so I have my new cmdlets ready to use, but they're not: the module is not loaded. I have to write <code>Import-Module MySnapin</code> in order to get it loaded.</p>
  
  <p>How can I get the module automatically loaded?</p>