title: Local New-PSSession fails in official powershell linux based docker images
body: <p>Running powershell core using docker (official microsoft images),
  I am trying to set up a local session in my script so I can later execute code in that session.</p>
  
  <p>I have tried using the following Linux Images:</p>
  
  <pre><code>6.2.3-alpine-3.8
  6.2.3-centos-7
  6.2.3-debian-9
  6.2.3-ubuntu-18.04
  </code></pre>
  
  <p>In both alpine and debian I am getting error: 
  <code>This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.</code></p>
  
  <p>In both Centos &amp; Ubuntu I am getting error:
  <code>MI_RESULT_ACCESS_DENIED</code></p>
  
  <p>I tried digging the error but it was only mentioned in cases of trying to remote from linux to windows, while here all I am trying to do is open the most basic local session.</p>
  
  <pre class="lang-bsh prettyprint-override"><code>        $FullCommand = "Invoke-Expression $CompleteScript"
          $Session = New-PSSession
          [scriptblock]$ScriptBlock = [scriptblock]::Create($FullCommand)
          Invoke-Command -Session $Session -ScriptBlock $ScriptBlock
  </code></pre>
  
  <p>or</p>
  
  <pre class="lang-bsh prettyprint-override"><code>        $Session = New-PSSession
          Invoke-Expression -Session $Session -Command $CompleteScript
  </code></pre>
  
  <p>Before even moving on to remote sessions from linux to windows I would like to establish a local session and be able to execute code on it.</p>
  
  <p>I am new to powershell so might be missing something, but I expected local session to work on at least one of microsoft's official docker images of powershell core, the documentation there didn't give me any insight on the issue.</p>