How to assign multiple lines string in Powershell Console

'@ should be first thing in the line or it is considered to be just a part of the string.

$test=@'
Test
Test
'@

This approach also works with @"/"@

Leave a Comment

tech