Hi Nick,
You just need to open the powershell on your Windows machine, goes to the path of your CLI and execute the following code (you just need to change what is in bold)
This code search for the, for example, account "root" and return the ID of this account and after that the CLI search for this ID and return the password. I'm using regex to get the attribute that I want on the XML return.
$hostName='[changeToYourHost]'
$user='[changeToYourUser]'
$pass='[changeToThePassOfYourUser]'
$accountToSearch='[ChangeToTheUserThatYouWantThePassword]'
$command = '.\capam_command'
$command_credential = @("cspmHostName=$($hostName)", "adminUserID=$($user)", "adminPassword=$($pass)")
$command_operation_search = @('cmdName=searchTargetAccount', "TargetAccount.userName=$($accountToSearch)")
$result = & $command $command_credential $command_operation_search
$search = "<ID>(.*?)</ID>"
$id_account = [regex]::Match($result,$search).Groups[1].Value
Write-Host = $id_account
$command_operation_getpwd = @('cmdName=viewAccountPassword', "TargetAccount.ID=$($id_account)")
$result = & $command $command_credential $command_operation_getpwd
$search = "<password>(.*?)</password>"
$password = [regex]::Match($result,$search).Groups[1].Value
Write-Host = $password
Hope this helps
Make sure that you can execute PowerShell scripts in your machine:
about_Execution_Policies | Microsoft Docs