Switch on the instant pot to sauté mode.
Once it displays "HOT", add the olive oil followed by onions and red bell pepper and sauté until onions are soft/translucent.
Add the minced garlic and sauté for few seconds
Next add the vegetable stock and pasta. Press the pasta gently so its below the liquid. Switch of the instant pot saute mode.
Add tomato sauce on top of pasta, followed by spices( red chili powder, cumin powder, oregano, salt and black pepper), corn and, black beans. Do not mix just make sure to spread ingredients evenly in a layer one after other.
Close the instant pot with lid, vent in sealing position.
Cook on Manual (pressure cook) High Pressure for 2 mins (regular pasta 3 mins - see notes) and do a quick release when done. Press cancel
Open the lid, add cilantro, green onions and fluff up the pasta with fork or spoon.
Serve warm by adding some cheese on the pasta and garnish with your favorite toppings