Trying to create a here-string
> $scriptblock =@'
The string is missing the terminator: '@.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
Why am I getting this in the Powershell ISE, but it works normally in Powershell? Version 5.1.
> $scriptblock =@'
>>
No, there's no space after the single-quote. I just hit enter. I even closed and reopened ISE and same thing.