ECP writes to trial court for case against Imran