You seem to have forgotten the pipe symbol ('|') at the end of the line before the line with the Export-Csv.
Export-Csv sees no input, hence the prompt
Top man LucD!! ;-)