Acho que você está procurando start-transcript
:
The Start-Transcript cmdlet creates a record of all or part of a Windows PowerShell session in a text file. The transcript includes all command that the user types and all output that appears on the console.
Então, você gostaria de fazer:
start-transcript -path c:\temp\transcript.txt -noclobber
... do sume stuff ...
stop-transcript