Problems with exporting to .csv via CLI

I may need to do something similar in a project I'm working on, but I'm not quite at that point yet. I've bookmarked another post I saw here on the forum, maybe it could point you in the right direction (I haven't tried it yet). It's a post from user @chrissyhroberts
Run an external script via ODK briefcase. (check the last post, with a link to his code on github)