PowerShell script output redirection to file

33 views Asked by At

when I run the script in the terminal without output redirection, everything looks fine.
But when I redirect to file, Write-Host -NoNewLine don't work (line is broken).

test.ps1 *>output.log

``` Write-Host "Hello " -nonewline; Write-Host " World" ```
0

There are 0 answers