When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Write-Host writes data to the Information stream. If you had used Write-Output, your text would have gone to the output stream, and could easily have been captured to a csv file.
If you only switched Write-Host for Write-Output, your output in the CSV file would only be the string of text, which doesn’t seem as useful. Olaf’s suggestion will turn your output into a true CSV with data in columns. Much more usable.