To remove an app from new accounts created in future, modify the desired command as follows:
Get-AppxProvisionedPackage –online | where-object {$_.packagename –like "PackageName"} | Remove-AppxProvisionedPackage –online
Also , Windows 11 has a built-in package manager called winget. It supports uninstalling apps,
Enter the following command: winget list. It will return the list of allapps you have currently installed on your machine.
Find the app you want to remove and type this command winget uninstall
For Example : winget uninstall cortana
Hope this answers your question :)
Thank you.
--
--If the reply is helpful, please Upvote and Accept as answer--