When I debug below lines of code in VS code it works fine.But, When this code executes in azure devops (release pipeline azure powerShell task), I get below task error. azure powerShell Taskversion = ~ 5.* Is this version specific?
(Measure-Command {
1..200 | ForEach-Object -Parallel $testScript -ThrottleLimit 5
}).TotalMinutes
Error: 2020-12-16T11:25:36.6181969Z + $timeTaken = (Measure-Command { 2020-12-16T11:25:36.6183027Z + ~~~~~~~~~~~~~~~~~ 2020-12-16T11:25:36.6184374Z + CategoryInfo : MetadataError: (:) [Measure-Command], ParameterBindingException 2020-12-16T11:25:36.6185735Z + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Commands.MeasureCommandCommand