There is a way to do what you want, without having to close the session or the explorer, through the Local Group Policies.
The Local Group Policies are stored in .pol format. The good new is that Microsoft provides a command line tool called "LGPO.EXE", which can interact with this kind of file.
Download LGPO.exe : https://www.microsoft.com/en-us/download/details.aspx?id=55319 (LGPO.zip)
Create a NoViewContextMenu.txt file, as indicated bellow
Build a policy file from the text file, using the following command : LGPO.exe /r NoViewContextMenu.txt /w NoViewContextMenu.pol
Import the policy in the Local Group Policy (it's a user policy, so use /u) with that command : LGPO.exe /u NoViewContextMenu.pol (you will need Admin rights)
That's all. The next step is to automate it using AutoIt (the steps 1 to 3 have to be done just one time)
NoViewContextMenu.txt
; Disable the context menu
User
SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoViewContextMenu
DWORD:1
Warning : since the Home edition of Windows does not support the Local Group Policy editor, I don't know if it works with this tool
Edit : I didn't try to execute the script using a different account, but in this case you will probably need to execute the gpupdate command to apply the change