Hi @Darien Chiba ,
The Do...While should help:
# Simple example
$a = 1
Do {$a ; $a++} While ($a -lt 5)
You can try this if it works for you:
Do {Get-AppXPackage <App> | Remove-AppXPackage} While (Get-AppXPackage <App>)
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten