Good day Ezra! I am Independent Advisor Paul R. and also a Microsoft/Windows user like you and I am glad to be able to provide assistance to you today. I understand that you are having an issue with regards to PowerShell. Kindly check and try the below methods and see how it goes.
Method 1:
- Type in cmd from the search bar on the taskbar and right click on Command Prompt and click on Run as administrator
- Type in the commands below
sfc /scannow
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
- Reboot your PC afterwards and check again PowerShell
Method 2:
- Press Windows key + X and click on Run
- Type in optionalfeatures.exe and hit Enter or press OK
- Look for Windows PowerShell
- Uncheck or remove the fill from the box and then apply it and then restart your PC
- Go back again to optional features and then check or fill the box for Windows PowerShell and then try it again
- Another method that you can try is the following
- Click on Start
- Click on Settings
- Type in optional features from the search bar and click on Manage optional features
- Look for Windows PowerShell Integrated Scripting Environment and then click on it and click on Uninstall and then restart your PC
- Go back to Setting and then type in optional features from the search bar and click on Manage optional features
- Click on Add a feature and look for Windows PowerShell and install it from there and then check and try it again
Regards,
Paul R.