Understand if the script is "destructive" (removes files) or "reversible" (Registry only).
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] "AllowCortana"=dword:00000000 windows 10 registry tweaks github work