4. Prepare Pesto
While the squash is cooking, prepare the pesto. Combine the spinach, pine nuts, Parmesan (if using), lemon juice, garlic, and remaining 1/4 cup olive oil in a food processor. Process until the mixture forms a homogenous pesto sauce. Add a tablespoon or two of water if the pesto is too thick. Season to taste with salt.