Convert XLS to CSV on Command Line

OS - Win 7;
LO version : 5.0.4

We receive an XLS file with multiple sheets. Is there a way to convert all sheets to separate files in csv format.
I am testing this on Windows machine and if it works, i have to move the utility to the linux server to be used by the process.

when i try soffice --headless --convert-to csv %input file% ; a file is created with max size of 50 kb. Is there a reason why it would limit by size.

The answer here offers a way to export all sheets by using a macro. There does not appear to be any way to export to CSV (via headless mode) all sheets in a document.