It was written by David Rambo who is the show runner and a writer for one of those LA cop shows. NCIS? One of them or like one of them.
Start watching. As I recall his name is in the starting credits.
Or Google him. You never know.
"If my life weren't funny, it would just be true. And that would be unacceptable."
--Carrie Fisher