Aqui está a solução:
Isso adiciona o powershell à janela de abertura (ou seja, ao clicar com o botão direito do mouse em um arquivo)
[HKEY_CLASSES_ROOT\Directory\shell]
1. Create a key such as "powershell" or whatever you want without space
2. Set the default value of the key as your desired text, e.g.:"PS here dear"
3. Create a nested key inside the "powershell" key as "command"
4. Edit the command value by this:
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -NoProfile -Command Set-Location -LiteralPath '%L'
Isso adiciona o powershell ao menu do botão direito dentro da pasta
[HKEY_CLASSES_ROOT\Directory\Background\shell]
1. Create a key such as "powershell" or whatever you want withuout space
2. Set the default value of the key as your desired text e.g "PS here dear"
3. Create a nested key inside the "powershell" key as "command"
4. Edit the command value by this:
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoExit -NoProfile -Command Set-Location -LiteralPath '%V'
Observe as diferenças de% V e% L no comando