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 ...
Wouldn't it be cool if PowerShell could automatically write scripts so that you didn't have to? Believe it or not, it is possible. Of course the old saying that if something sounds too good to be true ...