Tyler Perry just found his next directing gig.