Have chance powershell has been corrupted so, first run this command in cmd or run window. 'wt.exe'. check whether window open or not. suppose open but not able to execute your powershell commands. then powershell corrupted.
so first execute in run window sfc /scannow then DISM /Online /Cleanup-Image /RestoreHealth restart your pc then try to powershell directly.
Thanks.