By Michael Ausiello
September 22, 2010 at 09:09 PM EDT

Image Credit: Colette De Barros/Nickelodeon; David M. Russell/CBSPrepare to see iCarly as you’ve never seen her before: drinking, driving, and facing jail time!

Nickelodeon phenom Miranda Cosgrove has signed on to guest-star on The Good Wife as Alicia’s newest client, Sloan, a troubled pop star who is arrested on a DUI charge. Over the course of a paparazzi-packed trial, Alicia finds herself bonding with the misunderstood tabloid magnet.

“We’re big iCarly fans, so we really couldn’t think of anyone better for this role than Miranda Cosgrove,” gushes exec producer Robert King. “We were thrilled when she agreed to do it. It’ll be fun to see her handle both the comedy and drama in the role, and we can’t wait to see how she’ll play across from Julianna.”

Cosgrove’s episode is currently slated to air on Nov. 16. The Good Wife kicks off its second season next Tuesday.