Boa tarde,
Quando coloco a linha de instalação do Chocolatey no cmd, e pressiono ENTER, após alguns segundos, a seguinte mensagem de erro aparece:
New-Object : O termo 'New-Object' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente. No linha:1 caractere:7
- iex ((New-Object System.Net.WebClient).DownloadString('https://chocol ...
~- CategoryInfo : ObjectNotFound: (New-Object:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Segue abaixo a linha de instalação a qual eu me refiri anteriormente:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"