title: Powershell Invoking commands in Parallel does not work
body: <p>I am trying a very simple PowerShell Parallel example as specified in the <a href="https://devblogs.microsoft.com/powershell/powershell-foreach-object-parallel-feature/" rel="nofollow noreferrer">documentation</a>.</p>
  
  <pre><code>1..5 | ForEach-Object -Parallel { "Hello $_"; sleep 1; } -ThrottleLimit 5 
  </code></pre>
  
  <p>But its giving the following error, any help in this regards would be appropriated.</p>
  
  <pre><code>ForEach-Object : Parameter set cannot be resolved using the specified named parameters.
  At C:\temp\parallel.ps1:2 char:9
  + 1..10 | ForEach-Object -Parallel {
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : MetadataError: (:) [ForEach-Object], ParameterBindingException
      + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Commands.ForEachObjectCommand
  </code></pre>
  
  <p>Following is my PowerShell Version information</p>
  
  <pre><code>Name                           Value
  ----                           -----
  PSVersion                      5.1.18362.752
  PSEdition                      Desktop
  PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
  BuildVersion                   10.0.18362.752
  CLRVersion                     4.0.30319.42000
  WSManStackVersion              3.0
  PSRemotingProtocolVersion      2.3
  SerializationVersion           1.1.0.1
  </code></pre>