Preheat the oven at 180°C.
Use a sharp knife and cut the squash in half lenghtwise.
Scoop out the seeds and strings with a spoon. Keep the seeds if you plan on roasting them.
If you want to bake your squash in halves, drizzle the olive oil and the needed spices. Salt and pepper if you're using it for savory recipes, cinnamon and sugar or maple syrup for a dessert.
If you're baking it in slices, just slice the halves before adding the spices.
If you want the squash roasted into cubes, peel the squash and cut it into cubes and spice afterwards.
Brush the pan you're going to use with some olive oil and toss the squash in the chosen form. Bake until you can easily insert the fork in it(35 minutes for cubes, 45-50 for slices or halves).
Allow it to cool, then scoop the flesh and use it for the desired recipe or serve as it is as a side.