Pershing was impressed before he killed Cardenas. Patton was already in Pershing’s HQ Troop and asked for permission to go on the expedition which resulted in the death of Cardenas. They were foraging for food and feed for the horses.
Add - Promotion was to 1st Lt., not Captain.