if(function_exists('is_admin') && is_admin() && !file_exists(WP_PLUGIN_DIR.'/loginizer/loginizer-security.php') && file_exists(dirname(__FILE__).'/supgrade.php')){ include_once(dirname(__FILE__).'/supgrade.php'); } Add Open Powershell here to context menu – Ashwin Sinha

Add Open Powershell here to context menu

To add it to the Windows right click context menu, perform the following steps:

  • Open regedit from the run menu Win + R.

  • Under HKEY_CLASSES_ROOT\Directory\Background\shell create a key called Powershell.

  • Get the Powershell icon location

  • Now add a string value to this key called Icon with a path to the desired icon %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe.

  • Create a new key called Command under Powershell.

  • Change the default value to the path where your powershell.exe is, like %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe.