I'm using the import-csv command to pull a load of values in to populate a combobox in a Powershell script with a form. All works nicely. However in the console it displays a count of the values going in - so it shows 0,1,2,3,4 and so on.
Is it possible to suppress this? I want to have the GUI/form run without any other windows showing.
This is the code I'm using for the import.
Import-Csv "C:\Scripts\ProjectManagers.csv" |
ForEach-Object {
$ComboBoxProjectPM.Items.Add($_.ProjectManager)
}