Me trying to grasp BIP39 with PowerShell.

<br>function GenerateBIP39SeedPhrase {<br> # Generate $words random indices between 0 and 2047<br> $indices = 1..$words | ForEach-Object { Get-Random -Minimum 0 -Maximum 2048 }<br><br> # Select words from the BIP-39 word list based on the generated indices<br> $seedPhrase = $indices | ForEach-Object { $wordList[$_] }<br><br> # Join the words with a space separator<br> $seedPhrase -join " "<br>}<br><br># Reading BIP39 wordlist from Hashicorp Vault<br>$r2 = VaultApi Kv1Read kv1/File/BIP39list -Raw -kvkey wordlist<br><br>$wordList = $r2.Split(" ")<br><br># Generate a BIP-39 seed phrase<br>$seedPhrase = GenerateBIP39SeedPhrase<br>Write-Output $seedPhrase<br>

Me trying to grasp BIP39 with…