Bro atleast read the title its given lol(league of legends)for which game?
Bro i think this method has been patched , i still got ban by following everything u mentioned.Do this whenever you run the script and before shutting down your computer.
Delete "machine.cfg" and "metadata" in C:\ProgramData\Riot Games.
Completely delete the C: \ Users \ User \ AppData \ Local \ Riot Games folder.
Completely delete the C: \ Riot Games \ League of Legends \ Config and Logs folder.
Delete everything in the Run > Temp folder.
Delete everything inside the folder Run > Prefetch.
Delete everything in the Run>%temp% folder.
Delete everything in the folder Run > Recents. I've managed to spend more than 1day without a ban doing this. You can trust me if I take a ban I'll let you know