Вот копия reg-файла, который я использую для добавления CMD и POWERSHELL в фоновое контекстное меню в Windows 10:
Редактор реестра Windows, версия 5.00
; Add_Open_CMD_and_Powershell_to_Context_Menu.reg
; Только щелчок правой кнопкой мыши по фону
CMD Prompt
[HKEY_CLASSES_ROOT \ Directory \ Background \ shell \ 01MenuCmd] "MUIVerb" = "Командные строки" "Icon" = "cmd.exe" "ExtendedSubCommandsKey" = "Каталог \ Фон \ ContextMenus \ MenuCmd"
[HKEY_CLASSES_ROOT \ Directory \ Background \ shell \ 01MenuCmd] "MUIVerb" = "Командные строки" "Icon" = "cmd.exe" "ExtendedSubCommandsKey" = "Каталог \ Фон \ ContextMenus \ MenuCmd"
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuCmd \ shell \ open] "MUIVerb" = "Командная строка" "Icon" = "cmd.exe"
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuCmd \ shell \ open \ command] @ = "cmd.exe / s / k pushd \"% V \ ""
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuCmd \ shell \ runas] "MUIVerb" = "Повышенная командная строка" "Icon" = "cmd.exe" "HasLUAShield" = ""
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuCmd \ shell \ runas \ command] @ = "cmd.exe / s / k pushd \"% V \ ""
; PowerShell
[HKEY_CLASSES_ROOT \ Directory \ Background \ shell \ 02MenuPowerShell] "MUIVerb" = "Подсказки PowerShell" "Icon" = "powershell.exe" "ExtendedSubCommandsKey" = "Каталог \ Фон \ ContextMenus \ MenuPowerShell"
[HKEY_CLASSES_ROOT \ Directory \ Background \ shell \ 02MenuPowerShell] "MUIVerb" = "Подсказки PowerShell" "Icon" = "powershell.exe" "ExtendedSubCommandsKey" = "Каталог \ Фон \ ContextMenus \ MenuPowerShell"
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuPowerShell \ shell \ open] "MUIVerb" = "PowerShell" "Icon" = "powershell.exe"
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuPowerShell \ shell \ open \ command] @ = "powershell.exe -noexit -command Set-Location '% V'"
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuPowerShell \ shell \ runas] "MUIVerb" = "Повышенный уровень PowerShell" "Icon" = "powershell.exe" "HasLUAShield" = ""
[HKEY_CLASSES_ROOT \ Directory \ Background \ ContextMenus \ MenuPowerShell \ shell \ runas \ command] @ = "powershell.exe -noexit -command Set-Location '% V'"