$bundlePath = $MyInvocation.MyCommand.Path.TrimEnd($MyInvocation.MyCommand.Name)
$dependencyPath = ""

echo $bundlePath

IF(Test-Path -Path "$bundlePath*" -Include *.msixbundle) { $bundlePath = $bundlePath + "*.msixbundle" }

ELSEIF(Test-Path -Path "$bundlePath*" -Include *.msix) { $bundlePath = $bundlePath + "*.msix" }

ELSEIF(Test-Path -Path "$bundlePath*" -Include *.appx) { $bundlePath = $bundlePath + "*.appx" }

ELSE { exit }

IF(Test-Path -Path "$bundlePath\x64\*" -Include *.appx) { Add-AppxPackage -Path $bundlePath -DependencyPath "$bundlePath\x64\*.appx" }

ELSE { Add-AppxPackage -Path $bundlePath }
# SIG # Begin signature block
# MIIVgQYJKoZIhvcNAQcCoIIVcjCCFW4CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUufNrbkNhHya7oNSNw9Cib+tK
# G2ugghHiMIIFbzCCBFegAwIBAgIQSPyTtGBVlI02p8mKidaUFjANBgkqhkiG9w0B
# AQwFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVy
# MRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEh
# MB8GA1UEAwwYQUFBIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTIxMDUyNTAwMDAw
# MFoXDTI4MTIzMTIzNTk1OVowVjELMAkGA1UEBhMCR0IxGDAWBgNVBAoTD1NlY3Rp
# Z28gTGltaXRlZDEtMCsGA1UEAxMkU2VjdGlnbyBQdWJsaWMgQ29kZSBTaWduaW5n
# IFJvb3QgUjQ2MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjeeUEiIE
# JHQu/xYjApKKtq42haxH1CORKz7cfeIxoFFv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