AC turns on and car shuts off?? Help
So I bought my 2006 Toyota Highlander V6 3.3L a couple weeks ago, it has 200k miles. I test drove it, everything fine, ac and heat both worked fine. The battery light was on, the guy said he recently replaced the alternator and battery didn't really know why the light was still on but didn't disclose any issues with the car dying or anything so I wasn't worried, (just to note the battery he put in was refurbished).
Anyways, today I start my car, I previously haven't had to use the AC yet because it hasn't been that warm in Michigan til today. I turn the AC on before taking off and my car just instantly dies. I turn it back on, starts fine, try again and it dies again... I'm like weird okay not gonna use the AC I guess. The car is driving completely fine otherwise, after I get to my destination I try again and it dies AGAIN. Later in the day, I try again while in drive (foot on break) and the RPMS go down when the AC turns on but it doesn't die this time, it takes a couple secs but they return to normal. Also to note, when that happened the battery light went away for about 5 seconds before coming back. I went to Autozone had the guy test my battery, alternator and everything seemed fine, he pointed out since the battery was refurbished it might be worth trying to replace it. From what I read online it seems like the issue might be just the AC compressor though.
Has anyone experienced this before or have any advice on where to start? Do I buy a new battery? Do I assume it's just the ac compressor going bad. I know it's not 100% seized since it did work for a while today but something is definitely going on. If it is the AC compressor, should I just replace that or does the whole system need replacing?