Roast the garlic. Heat your oven to 400°F. Wrap the separated garlic cloves in a piece of foil and roast for 15 to 20 minutes, until completely soft. Let them cool for a minute, then squeeze the cloves out of their skins into a small bowl and mash with a fork into a rough paste.
Sear the shrimp. Heat the olive oil in a large skillet over high heat. Add the shrimp and cook for 1 to 2 minutes, just until lightly golden. Transfer them to a plate. They'll finish cooking in the sauce.
Build the flavor. Lower the heat slightly and add the white parts of the green onions, the mashed roasted garlic and the chopped anchovies. Cook for about 1 minute, stirring, until fragrant.
Make the cream sauce. Pour in the white wine (or stock) and bring it to a boil. Stir in the cream, then let it simmer for 2 to 3 minutes, until the sauce has reduced by about one third and lightly coats a spoon.
Cook the pasta. While the sauce simmers, cook the spaghetti in well-salted water according to the package directions. Drain well and return it to the pot.
Bring it all together. Add the shrimp and the sauce to the pasta. Season with salt and pepper and toss until every strand is glossy and coated.
Serve. Pile onto plates and finish with the green onion tops and a generous shower of Parmesan.