If I use Medicham's "Acu-Punch-Ture" attack and the opponent switches to a different Active Pokemon that has the same attack as the one I chose for "Acu-Punch-Ture", can they use that attack?
The effect was on the Pokemon that was attacked, so if that Pokemon switches out the new Active Pokemon can use their attack of the same name.
Source: Scarlet & Violet FAQ; TPCi Rules Team (2023-03-30)