Thank you so much for this batch file!! I very much appreciate it :)
Renaming the Cortana folder also disabled the Windows Search (Win + Q / Win + S) on my PC (Windows 10 Build 10240).
Changing "Microsoft.Windows.Cortana_cw5n1h2txyewy.bak" to its original name fixed the issue.