Pureinfotech Forums

How to run a PowerShell command from Command Prompt

Best answer: Simple append PowerShell to the beginning of the command on Windows 10.

If you’re running commands using Command Prompt, and you need to use PowerShell to run a single command, because it’s not available in Command Prompt, you don’t need to open an extra console. Just append PowerShell to the beginning of the command like the example below:

PowerShell Mount-DiskImage -ImagePath "C:\path\to\Windows10.iso"

Once you complete the step, you can continue running commands in Command Prompt.