Код:

c:\>powershell -sta -c "add-type -assembly system.windows.forms; [windows.forms.clipboard]::gettext() | out-file -width 999 out.txt"
Код:

> help out-file -parameter 'width'
-Width <Int32>
Specifies the number of characters in each line of output. Any additional characters are truncated, not w
rapped. If you omit this parameter, the width is determined by the characteristics of the host. The defau
lt for the Windows PowerShell console is 80 (characters).