CmdID / PowerShell / Cmdlets / Save
Save-EtwTraceSession
Saves the events collected by the ETW session to an .etl file. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-NameSpecifies the name of the ETW session.-OutputFileSpecifies the file to save the .etl file to for the ETW session.-OutputFolderSpecifies the folder to save the .etl file to for the ETW session.-OverwriteControls whether an existing file should be overwritten by saving this session.-StopControls whether the session should be stopped after the save is complete.-WhatIf, -wiShows what would happen if the cmdlet runs.