When using the Write-Output
command, a new line is automatically appended. How can I write strings to stdout (the standard output) without a newline?
For example:
powershell -command "write-output A; write-output B"
Outputs:
A
B
(Write-Host
is no good - it writes data to the console itself, not to the stdout stream)