I'm using Import-Excel function from ImportExcel module https://github.com/dfinke/ImportExcel to Get data from Excel to PowerShell.
When I print out imported table - columns do come out in the order as they were in Excel file. However I'm doing some modifications like renaming some of the columns (removing white signs from names) etc. Object I create in this process has columns sorted alphabetically. Question is: where is the information about column order in source file stored so I can use it afterwards when creating SQL table that stores the data ? I expect that there is some object that stores the information about printout order, something like format.ps1xml maybe ?