Restart Cortana via Script

taskkill.exe /S PCNAME /IM SearchUI.exe Schedule in task scheduler, tell to run only if logged into PC and set to run at highest privilege level.