I would like to display a message in PowerShell and append the message to a log file. In PowerShell 4.0 you can use Tee-Object -Append but I don't think they have the -Append option in PowerShell 2.0. Is there an simple way to write a message to the screen and log file at the same time? Thank you.
PS UnfortunatelyI can't upgrade to PowerShell 4.0.