If my script writes output message:
Code: Select all
Write-Host "Warn:dfdsfd dfsf`n dffd""Code: Select all
Warn:dfdsfd dfsf
dffdCode: Select all
Write-Host "Warn:dfdsfd | dfsf`n dffd"Code: Select all
Warn:dfdsfd |'dfsf
'=0 'dffd'=0Code: Select all
Write-Host "Warn:dfdsfd dfsf`n dffd""Code: Select all
Warn:dfdsfd dfsf
dffdCode: Select all
Write-Host "Warn:dfdsfd | dfsf`n dffd"Code: Select all
Warn:dfdsfd |'dfsf
'=0 'dffd'=0The backtick is escape sequence in the Powershell to enter e.g. new line, tab etc. But the backtick isn't definitely the reason of the problem. The problem appears only if Pipe symbol is part of output string and output is multi-line even without `n but using several Write-Output commands...That backtick looks to be interpreted as a backslash