Please refer to the following PowerShell on how to include the programs installed into the Windows PATH, and you can start it in PowerShell irregardless of your location
You can enter the following to temporary added in Windows PATH – the value will be reset back to default once you close the PowerShell
$env:path += "C:\nano"
Please refer to the following to permanently add the it to Windows Registry
$Location = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" #Put ; infront of the PATH $NewPathToAdd = ";c:\nano" $CurValue = (Get-ItemProperty $Location).PATH $NewValue = $CurValue + $NewPathToAdd Set-ItemProperty -Name PATH -Path $Location -Value $NewValue Write-Host -ForegroundColor Green $NewPathToAdd + "added successfully."
Close and restart the PowerShell Console, and you will get the new path