01 - Preheat oven to 350°F. Line a baking sheet with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, ginger, and nutmeg.
03 - In a large bowl, beat butter, brown sugar, and granulated sugar together until creamy. Add the egg and vanilla, mixing until smooth.
04 - Gradually stir in the dry ingredients until just combined.
05 - Fold in grated carrots, oats, and any optional add-ins (nuts and/or raisins).
06 - Drop tablespoonfuls of dough onto the prepared baking sheet, spacing 2 inches apart.
07 - Bake for 10-12 minutes, or until edges are golden and centers are set. Allow cookies to cool on the sheet for 5 minutes, then transfer to a wire rack to cool completely.
08 - For the optional frosting: Beat cream cheese and butter until smooth. Add powdered sugar and vanilla, mixing until fluffy. Spread or pipe onto cooled cookies.