title: Convert Powershell command to CMD
body: <p>I have the following <em>PowerShell command I'd like to run</em>:</p>
  <pre><code>Get-AppxPackage -allusers *mspaint* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
  </code></pre>
  <p>Then I have an example of a cmd.exe line executing PowerShell:</p>
  <pre><code>powershell -NoProfile -Command &quot;Get-AppxPackage -allusers *messaging* | Remove-AppxPackage&quot;
  </code></pre>
  <p>I would like some help to convert the PowerShell line above to a cmd.exe line version.</p>