The Emmy winner will appear in the penultimate episode of the drama's first season.

Jane Lynch is headed to court.

The Emmy winner is set to guest-star on The Good Fight, The Hollywood Reporter has learned.

Lynch will play Agent Madeline Starkey, an FBI lifer who is just as quirky as you'd expect of someone who can't be fired. Affable, unassuming with a pleasant manner, she can sometimes play dumb, but is extremely shrewd. She will appear in episode nine, set to debut April 9 on CBS All Access.

Although Lynch is currently only slated for one episode, creators and showrunners Robert and Michelle King are leaving the door open for future return appearances. "Jane Lynch has a particularly fun role, so it would be lovely to have her back," Robert tells THR.

Lynch joins an impressive list of guest stars for the first season of the Good Wife spinoff, which also marks CBS All Access' first foray into scripted original series. Other guests include Matthew Perry, Carrie Preston, John Benjamin Hickey, Rita Wilson and Gary Cole, all of whom are reprising their roles from the original series.

In addition to her Emmy-winning performance on Glee, Lynch is known for her roles in The 40-Year-Old Virgin, Role Models, Party Down and most recently Criminal Minds. She is next set to play former Attorney General Janet Reno in Discovery's forthcoming limited series Manhunt: The UNABOMer about Ted Kaczynski. Lynch is repped by UTA and Hansen Jacobson.

New episodes of The Good Fight are available for streaming every Sunday on CBS All Access.