I have a variable that will be put into powershell as a string from a different program that uses powershell. Lets say the variable is "value1, value2, value3" in it's entirety. I want to save this as a csv file.
I've tried using export-csv but the output I get is
#TYPE System.String
Length
34
Is there a way I can use powershell to turn the value of the string into a csv or do I have to separate each item?
Length.Export-Csvis another question.