Inicie o Powershell, use a funcionalidade transcrição .
Start-transcript Initializes a transcript fi le and then creates a record of all subsequent actions in the PowerShell session. Use the following syntax:
Start-Transcript [[-path] FilePath] [-force] [-noClobber] [-append]Stop-transcript Stops recording actions in the session and finalizes the transcript. Use the following syntax: Stop-Transcript