setx gpu_max_alloc_percent 100
any help??

You only need to enter that command once at the command prompt. It doesn't need to be a command in a .bat file that is run every time. It will say:
Success: specified value was saved.
If it works correctly, and that's it, no need for that command again.
Also, have you tried it with the above MSI Afterburner settings?