The gig marks a reunion for Shepard and Adam Scott after 'Wet Hot American Summer: 10 Years Later.'

Dax Shepard is returning to the small screen.

The Parenthood alum is set to guest-star on an upcoming episode of Fox's freshman series Ghosted, The Hollywood Reporter has learned.

The single-camera comedy centers on a partnership between Leroy (Craig Robinson), a cynical skeptic, and Max (Adam Scott), a genius "true believer" in the paranormal, who are recruited by a secret government agency called The Bureau Underground to save the human race from aliens.

Shepard will play Sam, a charming computer programmer with questionable intentions. His presence at The Bureau Underground pits Max against Leroy.

The role reunites Shepard and Scott after the two recently shared the screen in Netflix's Wet Hot American Summer: 10 Years Later when Scott assumed the role — spoiler alert — originally played by Bradley Cooper. Shepard also appeared on Scott's long-running NBC comedy Parks and Recreation.

In addition to his six-season stint on Parenthood, Shepard is also known for his breakout role on Punk'd. His films credits include Baby Mama, Without a Paddle, This Is Where I Leave You and most recently the CHIPS remake, which he also wrote and directed. He is repped by WME.

Other Ghosted guest stars include Beck Bennett (Saturday Night Live), Megalyn Echikunwoke (House of Lies), John Getz (Timeless) and Chuck grad Ryan McPartlin.

The series airs Sundays at 8:30 p.m. ET/PT on Fox.