What is listening on those ports?
Just terminate the service that is listening there.
The ports themselves are "ephemeral", they are opened on demand by whichever application requires them.
Find out which service/application requires those processes, and then stop those.
I suggest simply firewalling them off, if you believe that these ports are undesirable to have open.