Sorry wasn't sure where to put this.
I've created a script to integrated with Passwordstate for password retrieval. (attached)
It requires use of my PasswordState-management powershell module to use. Details here: https://github.com/dnewsholme/PasswordState-Management
Powershell Gallery Link: https://www.powershellgallery.com/packages/passwordstate-management/2.0.0
Feel free to use/alter as you like.
Hope it helps.
You can disregard - I solved it by updating the PasswordState-Management scripts that were updated 4 days ago on GitHub.
Run PowerShell as admin and execute the following:
Install-Module -name PasswordState-Management -Force // this should install over the current script version to the latest version. The new 4.4.34 works with PasswordState v9 just fine.