That’s anyway just the output of the console. If you want to have it in a file you should use Export-Csv. Please read the complete help including the examples to learn how to use it.
It sounds like you’re asking for a CSV file, in which case Olaf’s suggestion is one of the most effective. Also worth noting that if you don’t want to create a file and just want to convert it to CSV in the console there is also a ConvertTo-Csv cmdlet.