Alexis,
I think you might mean "control" instead of "command." There's a VI method called Get All Control Values that returns an array like the one you are describing.
One answer for you is that you can use Advanced >> Data Manipulation >> Flatten To String to turn your control value array into a string that you can easily save to file with the high-level file I/O VIs. You can also use the more advanced VIs to save your array to file without converting to a string first (explore the help and the examples on Read File, Write File, etc. to learn about all your options here).
If your real goal is to load and save default control settings, then you will find a wealth of different techniques for doing so by searching this site for "labview default values" or similar.
Regards,
John