title: Powershell Remoting: using imported module cmdlets in a remote pssession
body: <p>Is there a way to use modules that were imported in a local session in a remote session? I looked at import-pssession, but I don't know how to get the local session. Here's a sample of what I want to do.</p>
  
  <pre><code>import-module .\MyModule\MyModule.ps1
  $session = new-pssession -computerName RemoteComputer
  invoke-command -session $session -scriptblock { Use-CmdletFromMyModule }
  </code></pre>
  
  <p>Also, I do not want to import-module in the remote session, as the ps1 files are not on that server.</p>