Drain the green beans: Open the cans and drain the green beans, reserving about ½ cup of the canning liquid.
Heat the skillet: Add olive oil to a large skillet and heat over medium heat. Add the green beans and reserved liquid.
Season the beans: Stir in onion powder, garlic powder, salt, and black pepper. Simmer uncovered for about 10 minutes, stirring occasionally, until most of the liquid evaporates.
Add butter: Add the butter and stir until melted and evenly coats the green beans. Continue cooking for about 5 minutes.
Taste and serve: Taste the green beans and adjust the seasonings if needed. Serve hot with your favorite main dish.