Command error. Return code 11 to generate BOM


I got the solution. If you have spaces on your directory of your Kicad Files remove them by putting a character for example “_”. When you open Kicad, you just look for your file and run the BOM again. It worked for me.