Add your diced pear, water, brown sugar, cinnamon, nutmeg, and star anise to a small saucepan. Simmer over medium heat for about 8 minutes, stirring occasionally, until the pear is completely soft. You'll notice the kitchen starts smelling incredible around minute five.
Remove the star anise, then blend the cooked pear mixture until it's completely smooth. I like using an immersion blender right in the pot to save on dishes, but a regular blender works just as well here.
Pour the blended mixture through a fine mesh strainer into a small bowl or jar. This step removes any leftover fibrous bits, leaving you with a glossy, pourable spiced pear syrup that's ready to use.
While the syrup cools slightly, brew your espresso or strong coffee. I usually time this so it's fresh and hot right when I'm ready to assemble the latte, since cold espresso can dull the flavor.
Heat your milk in a small saucepan or use a frother until it's warm and slightly foamy. You're not looking for stiff peaks here, just a light, creamy texture that will sit nicely on top of the drink.
Spoon 2-3 tablespoons of spiced pear syrup into each mug, pour the hot espresso over it and stir well, then top with your steamed milk. Finish with a light dusting of cinnamon or nutmeg for that coffee-shop finish.