Here is a quick PowerShell script - it supports the pipeline so you can automate, e.g. if you use a command line password manager.
https://gist.github.com/lzybkr/85b4dbd6536ea5351e8d8e492a432...
https://gist.github.com/lzybkr/85b4dbd6536ea5351e8d8e492a432...