正在尝试创建here-string
> $scriptblock =@'
The string is missing the terminator: '@.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString为什么我在Powershell ISE中获得此功能,但它在Powershell中正常工作?版本5.1。
> $scriptblock =@'
>> 不,单引号后面没有空格。我刚按了回车。我甚至关闭并重新打开了ISE和同样的东西。
发布于 2020-10-30 03:06:20
马蒂亚斯·R·杰森提供的答案:按Shift+Enter在ISE控制台中插入文字换行符
https://stackoverflow.com/questions/64584396
复制相似问题