Is there an foss command line program that can convert between Excel (.XLXS) and Comma Separated Value (.CSV) files?
Yes! Use the PowerShell Excel Module. A full discussion of its features and uses is well beyond a simple Q/A, but the knowledge of its existence will get you in the right direction.
A cross-platform means of doing this without Excel being installed would be the Python tool