Press Windows key + R
Type: optionalfeatures.exe
Hit Enter
Scroll down and locate the Windows PowerShell entry.
Uncheck the PowerShell feature.
Save and apply your changes.
Restart your Windows 10 computer.
Afterwards, repeat the steps from above and re-enable the Windows PowerShell feature.