I am following through with thistable-of-contents
Pluralsight course. I try to run script called restore.cmd @ECHO OFF SETLOCAL PowerShell -NoProfile -NoLogo -ExecutionPolicy ByPass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' -all -nobuild -restore %*; exit $LASTEXITCODE"
When I type restore.cmd either in Powershell or windows cmd I get error:
'PowerShell' is not recognized as an internal or external command,
operable program or batch file.
I cloned aspnetcore source code from github and went through steps as in video but was stuck at the step to restore packages to build the solution.
My question first about this command (restore.cmd) is it powershell script? what is it doing?
and why I am getting the error? and is there any workaround like copying the command and run it in nugetconsole in visual studio