I want to collect all output from my script in a log file and must use write-output instaed of write-host.
Write-Output \"Server:\" $a looks like
Write-Output \"Server:\" $a
Found somewhere on the Internet:
Write-Output "Server: $($a)"
Works great in my code.