Blanch the green beans in boiling salted water for 3-4 minutes, then transfer to ice water to cool.
In a mixing bowl, combine olive oil, garlic powder, onion powder, salt, and black pepper. Add the blanched green beans and toss to coat.
In another bowl, mix shredded Parmesan cheese, sour cream, and cream of mushroom soup until creamy. Fold in the seasoned green beans and half of the crispy fried onions.
Spoon the mixture into phyllo pastry cups and top with remaining crispy fried onions. Bake at 375°F for 15-20 minutes until golden and bubbly.
Let cool for a few minutes before serving.