Search This Blog

Windows Batch Script: pass multiple line string


set PS=^
Write-Host Line1;^
Write-Host Line2;^
Write-Host Line3

powershell -NoProfile -Command %PS%

No comments:

Post a Comment