Firstly, a "package" is a collection of files, and may contain multiple "applications", which are the executables.
You can list the details about the package with Get-AppxPackage
, as discussed.
PS C:\Users\dbral> $pkg = get-appxpackage -name *terminal*
PS C:\Users\dbral> $pkg
Name : Microsoft.WindowsTerminal