Yes, you can save all the commands you run and their output to a file in PowerShell — Here's how to do it on Windows 10.
On Windows 10, if you work with PowerShell commands and scripts regularly, you probably want to keep a record of those commands and the output you see on the screen to a text file for troubleshooting or documentation purposes.
Full story from the WindowsCentral blog...