cmd prompt command on powershell code example Example 1: powershell open cmd Start-Process -FilePath cmd.exe Example 2: powershell command get-command