To install devsetup run the command below, ensure you are running it from an elevated shell (Administrator) when running on Windows as some of the commands need Administrator privileges (for instance, installing NuGet).
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser -Force
iwr https://install.pwshdevs.com/devsetup | iexOnce devsetup is installed run the command below to initialize your environment.
devsetup -init