Keshia Knight Pulliam’s decision to escort Bill Cosby into his sexual assault trial was not only selfish, it violated a court order in her child custody agreement … according to her ex himself. In new legal docs, Ed Hartwell says he…