Some people use Windows for games. Yes, I know you can run a lot of Windows games on Linux using Wine or PlayOnLinux, but some just prefer vanilla Windows. Scripts like these are great for freeing up memory and decluttering Windows 10 specifically for running games (typically offline) as connecting Windows to the Internet is generally not a good idea.