Is saving queue as playlist doable from shell?

I wrote a bash script to convert Windows to Volumio playlists but I need to enqueue them and save them again from within Volumio for seeing all metadata.
Is maybe there a way to save the queue as playlist with a shell command?

Found a workaround here: Another Windows playlists importer - #3 by Flak