Preheat oven to 500°.
. Combine ground coffee, 1 teaspoon salt, and 1 1/4 teaspoons pepper; gently press onto beef. Place tenderloin on a rack coated with cooking spray in a shallow roasting pan. Bake at 500° for 20 minutes. Reduce oven temperature to 300°; bake tenderloin for 20 minutes or until a thermometer registers 145° (medium-rare) or desired degree of doneness. Remove from oven; let stand 10 minutes before slicing.
. While beef cooks, place flour in a small bowl; gradually add broth and brewed coffee, stirring with a whisk until well blended.
. Heat oil in a large nonstick skillet over medium heat. Add shallots; sauté 5 minutes or until tender. Stir in garlic; sauté 1 minute. Add broth mixture, and bring to a boil over medium-high heat, stirring frequently. Cook until sauce is reduced to 1 cup (about 20 to 25 minutes). Stir in remaining 1/4 teaspoon pepper, brown sugar, and 1/4 teaspoon salt. Serve sauce with sliced beef. Garnish with thyme sprigs, if desired.