Out-String

Outputs input objects as a string. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/out-string.

Get-Alias | Out-String

Get-Alias | Out-String -Stream

@{TestKey = ('x' * 200)} | Out-String -Width {{250}}