Preheat air fryer or oven to 350°F.
Make four diagonal slits into each eggplant, from top to bottom being careful not to cut all the way through. Press half a clove of garlic in to each slit. Brush the eggplants with the two teaspoons of oil and place on a parchment lined air fryer basket or baking tray. Air fry or roast for 20 minutes on one side, flip and air fry/roast for another 5 minutes or until the eggplant is soft to touch.
Heat a large skillet, seasoned wok or kadhai on medium high, add in 3 tablespoons of oil and the sliced onions. Cook until the onions have softened and are just beginning to turn slightly golden.
Add the tomatoes, green chilis, coriander, cumin, turmeric, and cayenne pepper. Cook on medium heat until the oil separates from the tomatoes and they soften, about 5 minutes.
Remove the eggplant from the oven, set aside to cool slightly. Scoop out the flesh and discard the skins. Roughly mash the eggplant, breaking up any chunks.
Add the eggplant into the tomato masala, mash with the back of a wooden spoon or spatula. Add in the green peas, mix well, cover and cook on low heat for about 15 minutes.
The bharta is ready once the peas have softened, and the oil separates from the eggplant and tomato mixture.
Garnish with garam masala, cilantro, and lemon juice if using. Serve with warm, buttery paratha.