When i execute the following PowerShell script on Linux:
dir
In the following way:
pwsh test.ps1 > output.txt
The output in output.txt is limited to 80 columns.
How can i prevent this behavior? Modifying $host.UI.RawUI.BufferSize is not supported on Linux.