@echo off IF %1.==. GOTO USAGE powershell -command "Get-AppxPackage -AllUsers *%1* | Remove-AppxPackage" GOTO END :USAGE echo "usage: %0 " :END