Heat olive oil in a medium sized pan and sauté the garlic and onion.
Add the bottled pesto and the heavy cream and let it simmer on low heat.
Add the parmesan cheese and stir until melted. Season with salt, ground pepper, onion and garlic powder.
Add the cooked pasta and gently let the sauce coat to it.
Add pasta water if you want the sauce thinner.