Why doesn't dotnet script run in PowerShell after installation? I closed and reopened all PowerShell instances after installing.
PowerShell throws this error when I run dotnet script init:
No executable found matching command "dotnet-script"
Edit:
dotnet scriptdoes run incmd.exe- The
dotnetand.dotnet\toolsfolders are present inPATH
I solved by:
$env:PATHwasn't updating even after closing/reopening all PowerShell instances (source)