Open-VaultConnection for Vault 2026 fails with "Failed to login to Vault!" when called in Windows PowerShell

Description

When calling Open-VaultConnection to connect to Vault 2026 in a PowerShell session like ISE or VsCode it fails with 

Failed to login to Vault! Eine Ausnahme vom Typ "Autodesk.Connectivity.WebServices.LicensingSDKUntrustedException" wurde ausgelöst.

Cause

Vault 2026 uses PowerShell 7, but Windows only installs PowerShell 5.1 per default.

Solution