@echo off
do key in /L HKCR\test\Directory HKCR\test\Directory\Background HKCR\test\Drive
if %@regcreate["%key\Shell\TCC\command"] NE 0 (echoerr Failed to create %key & quit)
if %@regset["%key\Shell\TCC\",REG_SZ,TCC prompt here] NE 0 (echoerr Failed to update %key\Shell\TCC\ & quit)
if %@regset["%key\Shell\TCC\command\",REG_SZ,"%_cmdspec" /k *cdd "%%L"] NE 0 (echoerr Failed to update %key\Shell\TCC\command\ & quit)
enddo
echo.
echo The Windows Explorer context menus have been updated.