Put the ingredients in the above order into the bread machine.
Set the machine to the DOUGH (kneading) or BRIOCHE DOUGH program, to knead and proof the dough.
Meanwhile, make the pistachio filling. Heat the cream with the sugar until the sugar has melted, then turn off the heat.
Add the ground pistachios and the lemon zest and juice. If it’s too thick, add more cream or lemon juice. Taste, and add more sugar to your liking. You should get a coarse spreadable paste. Set aside.
When the program ends (it should take about 90-110), remove the dough onto a large, lightly floured chopping board.
The dough should be spongy and not sticky. If it’s sticky, sprinkle it with flour and keep punching it with your knuckles.
Divide the dough into three parts, then them out, on by one, into a rectangular shape.
Spread the pistachio paste in mainly in middle part of the dough, then roll each up roll each into 30 cm long logs.
Put the logs next to each other onto a baking sheet lined with parchment paper.
At one end, stick them together, then braid them tightly and stick the other ends together too.
Mix the glaze, then brush top generously with it.
Bake in the middle of a preheated oven, at 170°C, for about 25-30 minutes until golden brown.
Take it out of the oven, let it cool, then slice & serve.