You can
cook the spaghetti squash whole in your microwave, or you can roast it in your oven.
To roast spaghetti squash: Cut off the stem part of the squash for easy cutting. Then, cut the squash in half lengthwise and scoop out the seeds.
Heat your oven to 400°F. Place the squash cut side down on a pan and bake until cooked through, about 35-40 minutes. You’ll be able to tell it’s done when you can easily pierce the squash with a sharp knife.