1

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.

Roman
  • 344
  • 1
  • 6
  • 19

1 Answers1

0

Answer provided by Mathias R. Jessen: Press [Shift+Enter] to insert a literal newline in the ISE console

Roman
  • 344
  • 1
  • 6
  • 19