How To Get The Value Of Header In CSV

In PowerShell I want to pass the name of a header in a CSV file into another function in the PowerShell script. How can I retrieve the value-text of a header name into a variable in CSV? e.g. if ...