I do know that if it is court ordered then according to KSA 60-235 it states that the court has the authority to order to direct the moving party to advance the expenses that will necessarily be incurred by the party to be examined.

KSA 60-235 (2)(C)

Though if he is your ex as you state--I am wondering why he (or you) thinks he can tell you what you must do.