从shell命令运行pwsh给我丢失了'}'错误

时间:2019-12-11 10:23:11

标签: powershell-core

运行以下命令:

/bin/sudo su - -c "/bin/pwsh -Command New-WKSWorkspace -Workspace @{"BundleID" = "wsb-0bxw19vkp"; "DirectoryId" = "xxxxx"; "UserName" = "xxxx"}

给出以下错误:

: exit status 127. Output: Missing closing '}' in statement block or type definition.
+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndCurlyBrace

请告知我命令中缺少的内容。

0 个答案:

没有答案