Position a rack in the center of the oven and preheat the oven to 400ºF. Spray baking pan with cooking spray or lightly oil. Set aside.
Dab both sides of cod fish dry with paper towels, season both sides with salt and pepper.
In a small pan set over medium low, heat butter, minced garlic, paprika, onion powder, cayenne pepper and parsley or basil. Stir for about 30 seconds or 1 minute. Let this mixture sit for a little bit about 5 minutes. Add lemon juice to mixture.
Brush cod fish with spice mixture, making sure every inch is covered with spice. Add to prepared baking dish or baking sheet.
Bake until cooked through, about 10-15 minutes, depending on the thickness of your fish and your preferred doneness. When the thickest part of cod is easily flaked with a fork, then is perfectly cooked.
Garnish immediately with lemon.