Hi @Govarthanan Venkatesan , Thanks for posting your question in the Microsoft Q&A forum.
As we understand the ask here is you want to know how to get the secrets using PowerShell correct me if my understanding is wrong.
You can find the PowerShell syntax in this document
Get-AzureKeyVaultSecret -VaultName 'ABC' -Name 'test' Get the current version of a specific secret in to the name 'test'. the same you can output to a file
| Out-File -FilePath .\secrets.txt
Please let me know if the information is helpful