To make the whoopie pies, preheat the oven to 190 degrees Celsius (375 Fahrenheit).
Add the soft butter and dark brown sugar to a large mixing bowl, and use a hand mixer to beat them together until you get a creamy texture.
Add the egg and beat again until it's fully incorporated.
Sift in the flour, cocoa powders and baking powder, add the vanilla extract and buttermilk, and use a spatula to mix well to get a thick batter.
Use an ice cream scoop of spoon to drop mounds of batter onto 2 baking trays, making sure you leave plenty of room between each pie.
Bake for 11 minutes until the whoopie pies spring back slightly when they are pressed gently.
Leave them to cool down completely.
To make the buttercream, add the soft butter and icing sugar to a large bowl, and use a hand mixer to cream them together.
Add the cocoa powders and milk, and beat again to a smooth texture.
Add the buttercream to a piping bag fit with a star noozle, and pipe cream onto the flat side of a whoopie pie, then top with another pie.
Dust them with Halloween sprinkles.