| PowerShell | Command Prompt (CMD) |
|---|---|
| 1. It is a task-based command-line shell and associated scripting language which is based on the .NET framework. | 1. It is the default command-line interpreter for the Microsoft Windows Operating System. |
| 2. It can interpret both the commands of a batch and PowerShell. | 2. It can interpret only the commands of a batch. |
| 3. It controls and automates the Windows operating system and applications on a Windows server. | 3. It executes the commands which are specified on the console to debug the problem. |
| 4. The output generated by the PowerShell is not just a stream of characters (text) but a collection of objects. | 4. The output generated by the command prompt is just a stream of characters (text). |
| 5. It is both a shell and scripting environment which supports the creation of large files for managing the windows operating system. | 5. It is just a shell environment, which allows a user to do only easy and basic scripts for the execution of the batch file. |