title: A positional parameter cannot be found that accepts argument / Installation Script
body: <p>I am a student and am very new to PowerShell.</p>
  
  <p>I am trying to get my <code>msi</code> to download remotely but i keep encountering an error.</p>
  
  <pre><code>A positional parameter cannot be found that accepts argument '\\share\folder\Path to msi'.
      + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
      + PSComputerName        : RemoteDesktopName
  </code></pre>
  
  <p>Here is my script:</p>
  
  <pre><code>$msi = @(\\share\folder\Path to msi)
  
  Invoke-Command -ComputerName PCname -ScriptBlock {param($msi) Start-Process msiexec.exe /i "\\Path to msi" /qn /passive -Wait 
   Start-Sleep 5 } -ArgumentList $msi
  </code></pre>
  
  <p>Could anyone please help me? Any feedback will be greatly appreciated.</p>