Would you like to learn how to run a Powershell command inside a CMD command line? In this tutorial, we are going to show you how to execute a Powershell command inside a DOS prompt.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Windows – Run a Powershell command inside CMD

Start a command-line prompt.

Windows - Command-line prompt

Run a Powershell command using CMD.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Run multiple Powershell commands using CMD.

Copy to Clipboard

There are multiple ways to run Powershell commands inside CMD.

Copy to Clipboard

Run a Powershell script using CMD.

Copy to Clipboard

The Powershell script content.

Copy to Clipboard

On Powershell, create the encrypted version of the script.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Run an encrypted Powershell script using CMD.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You are able to run Powershell commands using the CMD command line.