In the bowl of a stand mixer, add butter and beat to soften. Add powdered sugar, cocoa powder and espresso powder alternately with heavy cream. Blend well. Add vanilla and continue to mix to achieve spreading consistency. If too runny, add more powdered sugar. If too thick, add more heavy cream, a teaspoon at a time.