troubleshooting – Powershell broke – Super User

I already was asking a similar question here: Most of powershell commands not working
Basically, I wasn’t able to fix the issue so I got a replacement computer. Brand new. Started setting it up and only did the following:

  • Installed VS Code
  • Turned on Powershell extension in VS Code
  • It prompted something about Package Manager needing an update or it will not work properly
  • Asked me to install NuGet to get the Package Manager
  • After that PowerShell 5.1 stopped working again.

Modules not autoloading, fresh instance of powershell does this:

PS C:WINDOWSsystem32> Write-Host
Write-Host : The term 'Write-Host' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At line:1 char:1
+ Write-Host
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Write-Host:String) (), CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Any ideas?