1. Microwave green beans according to package directions.
2. While beans cook, melt butter in a large skillet over medium heat. Add shallots and garlic; cook, stirring constantly, 2 minutes. Stir in vinegar, salt, and pepper; cook 1 minute. Add beans, tossing to coat.