CLI way to get xml or csv as imput for Kicost

Hello!
Is there simple way to get input (csv or xml from sch) for Kicost plugin automatically using cli interface?no gui from kicad.
I need automatically generate Kicost spreadsheet from dozens of kicad projects

https://github.com/nhatkhai/kicad_scripts/blob/master/bom_plugins/bom2csv.py this plugin don’t work on windows

There isn’t a built in way but this project can do it among automating other output generation

Edit: no idea if it works on windows.