Вот копия файла 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'"