https://github.com/PowerShell/SecretManagement https://www.powershellgallery.com/packages?q=Tags%3A%22SecretManagement%22
Install-Module -Name Microsoft.PowerShell.SecretManagement
Install-Module -Name Microsoft.PowerShell.SecretStore
Register-SecretVault -Name LocalStore -ModuleName Microsoft.PowerShell.SecretStore -DefaultVault
Register-SecretVault -Name "PoshToDon" -ModuleName Microsoft.PowerShell.SecretStore
Set-Secret -Vault PoshToDon -Name $secretName -Secret "my very secret password"
Get-Secret -Vault PoshToDon -Name $secretName # returns secure string usable as secret or passwort