PowerShell is all about working with objects but sooner or later you’ll need to write text to a file with Powershell.
You have two options. The *-Content cmdlets and Out-File
PS> Get-Command *-Content
CommandType Name
———– –… Read the full text.