I finally got the functionality of my script working now I want to save to CSV, Im using the | Export-CSV -path .\\output.csv -Delimiter ";". b
| Export-CSV -path .\\output.csv -Delimiter ";"