Export data to text file in extended table format Print MyCommandLet | Format-Table -Wrap -AutoSize | Out-File c:\prova.txt