The actress on writing her first Rookie Blue script