SkipHeaderComments Parameter (Connect-CSV Cmdlet)
If set to true, skips rows at the top of the file beginning with #.
Syntax
Connect-CSV -SkipHeaderComments SwitchParameter
Data Type
bool
Default Value
false
Remarks
This will skip rows starting with # until a row is found that does not start with #. Subsequent rows will be read regardless of whether they begin with #.