Flour mixture: In a medium bowl, stir together the flour, ground pistachio, and salt. Set aside.
Butter mixture: In a large mixing bowl, add the softened butter. Use an electric hand mixer to beat until slightly pale in colour and very creamy. Add the sugar and beat until fluffy. Beat in the eggs one at a time until incorporated. Add the vanilla extract and mix until combined.
Combine: Add the flour mixture to the butter mixture and mix on low speed until no flour patches remain.
Shape dough: Turn the dough out onto a sheet of plastic wrap. Press it together with your hands and use a bench scraper to cut it in half. Press one half into a flattened disc shape and wrap it in plastic wrap. Repeat with the other half.
Chill: Chill both discs of dough in the fridge for at least 3 hours or overnight before rolling them out.
Prep: Line two baking sheets with parchment paper and set aside. You'll want to bake the top and bottom cookies separately because the tops will bake faster than the bottoms.
Roll out dough: On a well-floured surface, place down one disc of dough and cover with flour on both sides. Let it sit at room temperature for about 5 minutes to soften slightly. Use a rolling pin to roll out the dough until about ⅛" thick, rotating it and dusting with more flour occasionally to prevent it from sticking.
Bottom cookies: Use a small round cookie cutter to cut out cookies from the dough. Transfer them to a line baking sheet, leaving about ½" in between each cookie. They won't spread much. Re-roll the scraps and repeat. Use an offset spatula dusted with flour to help lift the cookies off the counter if they stick. Chill the whole baking sheet in the fridge for about 15 minutes to let them firm up again before baking. This helps them keep their shape.
Top cookies: Repeat the previous two steps with the other disc of dough - roll it out, cut out rounds, transfer them to a baking sheet. This time, use a smaller cookie cutter with a shape of your choice to cut out the middle of each cookie. You can bake the cut outs as-is or add them to your scrap dough. Chill the baking sheet in the fridge for about 15 minutes before baking.
Bake: Preheat the oven to 350°F. Bake the bottom cookies for about 10-11 minutes or until the edges are lightly golden brown. Bake the top cookies for about 7-8 minutes, depending on how big the cookies and the cut outs are. Let the cookies cool completely before assembling.
Dust top cookies: Add the powdered sugar to a fine mesh sieve and dust it over all the top cookies.
Add filling & assemble: Transfer the pistachio spread to a piping bag and snip off the tip. You can also just use a spoon, if you prefer. Flip over a bottom cookie and pipe pistachio spread in the middle of the cookie, leaving the edges empty. Press a top cookie on top and gently press together. Repeat with the rest of the cookies.