If you don't have a grill, you can cook peppers and onions by using a stovetop grill pan or a cast-iron skillet. Heat the pan over medium-high heat, add a little oil, and grill the peppers and onions in batches, turning them occasionally until they are charred and tender.