I am running an external application that creates a Powershell Out-Gridview, perfoms sendkeys for ^a and ^c then pastes the values into a new instance of Excel.
Works fine, but would like to include the column headers as first row in Excel.
Is this possible, or should I just output to .csv then Invoke-Item?
Stan