What I am trying to do is to capture everything in a powershell script and save it in a text file. I would like it as if I manually selected all, copied, then pasted in a text file.
I have explored Start-Transcript
, but it does not show the Read-Host
's. The only solutions I can think of is to Write-Host
right after every time I use Read-Host
. Is there any other way?