Format-Table in a powerful command that you can use to format your output. output can be a console or a file out. Format-Table working with object or a object collection.
For an example If you have a object collection from your code you can out put as a table.
-AutoSize will be use to format columns with depending of screen size. But if you are working with long width tables you better use Out-String -Width 4000 with output pipe. (4000 is a character count in horizontal, You can mention any suitable value )
You can use Format-Table with a single object as well.
Ex:- With all columns
Ex:- With mentioned columns
You can also create object collection, add objects and format it as a table.