How to re-install command prompt in windows 10, if it's suddenly missing from the system?

Solution 1:

  1. Yes it could be evidence of a virus or malware
  2. Yes you may be able to get back the command prompt by doing the following:
    1. Run powershell as admin
    2. Run the command sfc /scannow

It will repair missing or corrupted system files.