If you grow hardneck garlic, you’ll end up with scapes in late Spring/early Summer (full info here). A simple way to preserve them is to freeze them, viz:
Step 1: First, cut them up roughly.

Step 2: Put them in a hand blender.

After they have been blended.

Step 3: Scoop them into ice cube trays and then freeze.

Once frozen, you can just pop out as many as you need at a time.
FYI: yes, you can make garlic scape pesto, but I just wanted to show a lower spoon way of preserving your garlic scapes.
*****
Other garlic posts: