我正在运行以下的PowerShell命令,如果从机器本身运行它,它就可以正常工作。我登录作为持续集成服务器运行相同的用户,但我从CI服务器出现以下错误:我需要什么,从CI服务器有什么不同New-PSSession:无法找到接受自变量的位置参数
New-PSSession : A positional parameter cannot be found that accepts argument
[18:19:47][Step 1/1] 'stage-web-01'.
[18:19:47][Step 1/1] At line:1 char:13
[18:19:47][Step 1/1] + $Sessions = New-PSSession –ComputerName $Servers
[18:19:47][Step 1/1] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[18:19:47][Step 1/1] + CategoryInfo : InvalidArgument: (:) [New-PSSession], ParameterB
[18:19:47][Step 1/1] indingException
[18:19:47][Step 1/1] + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell
[18:19:47][Step 1/1] .Commands.NewPSSessionCommand
有什么想法?我检查过,我在本地运行相同的版本,因为我在CI服务器上。