The script command not only makes a record of what commands you run but also allows you to save the output generated so that you can examine it later or easily turn your command sequences into scripts ...
PowerShell can save you a lot of time on Windows admin tasks, but to use it effectively you need to understand how it works. Here's a crash course in Windows PowerShell scripting basics to get you ...