How to make Mac shut down when fully charged?
The claim is not true.

The only thing that has been proven to degrade battery life is heat, which also means overnight charging with your Mac sleeping is better than charging it while in use.

Switching it off doesn't make a difference.