title: Invoke-Command : A positional parameter cannot be found that accepts argument
body: <p>I am getting the above problem with the below script in powershell.
  I can't seem to find the issue. The script requires 2 parameters, and I've supplied them on the command line but it still throws an error?</p>
  
  <p><strong>Command:</strong></p>
  
  <pre><code>PS C:\&gt; powershell.exe -ExecutionPolicy Bypass invoke-command installboot.ps1 -computername 192.168.162.1 -argumentlist MyServer\MyNewService, option2
  </code></pre>
  
  <p><strong>Script:</strong></p>
  
  <pre><code>param(
      [Parameter(Mandatory=$true)]
      [string] $IISName, 
      [Parameter(Mandatory=$true)]
      [string] $installmode
  )
  
  write-host "IISName: " $IISName
  write-host "Install Mode: " $installmode
  </code></pre>