title: Import-Module -Assembly error
body: <p>I am trying to write PowerShell and am failing miserably.</p>
  
  <pre><code>Set-ExecutionPolicy Unrestricted
  Import-Module -Assembly PowerShellXrm.Framework.CI.PowerShell.dll
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Set-ExecutionPolicy Unrestricted 
  Import-Module -Assembly "PowerShellXrm.Framework.CI.PowerShell.dll"
  </code></pre>
  
  <p>and get the following error.</p>
  
  <pre class="lang-none prettyprint-override"><code>Import-Module : Cannot bind parameter 'Assembly'. Cannot convert the
  "PowerShellXrm.Framework.CI.PowerShell.dll" value of type "System.String"
  to type "System.Reflection.Assembly".
  At line:1 char:25
  + Import-Module -Assembly PowerShellXrm.Framework.CI.PowerShell.dll
  +                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Import-Module], ParameterBindingException
      + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.ImportModuleCommand
  </code></pre>
  
  <p>The PowerShell script is saved in the same location as the <code>PowerShellXrm.Framework.CI.PowerShell.dll</code> assembly. I have also tried  including the full path to the assembly with no luck.</p>