07 Sportsman reving to 4000 rpm’s in Park

If anyone can help I would be so grateful. I have spent over $200 at dealers saying they fixed the problem and they haven’t.

07 Polaris sportsman 500 efi problems when plowing driveway.
Last Saturday pull out of 50 degree heated garage (it was about 30) outside. Atv died when changing gears 3 times but started back up.

At one point while in park RPM’s went up to 3800 maybe 4000 and I was not touching the throttle. I shut the machine off started it back up and ran fine for 30 minutes.

I have it on video if anyone is interested in seeing this.

Again doesn’t seam to happen in the summer but didn’t rife a lot this year. It was at the Polaris shop 2 weeks ago they said they adjusted the throttle cable but that wasn’t it. Not throwing any codes.

Anyone have a clue what this might be?

Rick