I found some powershell command online to convert an xlsx file to an xml file. This works great, but the xml I am getting will be manipulated slightly, and after that I nee
Just open the xml file and save it.
The Format code for an xlsx file is 51, as per https://msdn.microsoft.com/en-us/vba/excel-vba/articles/xlfileformat-enumeration-excel
$xlsSpreadsheet = 51
$Excel = New-Object -Com Excel.Application
$WorkBook = $Excel.Workbooks.Open("c:\Test.xml")
$WorkBook.SaveAs("c:\Test.xlsx", $xlsSpreadsheet)
$Excel.Quit()