I have a dll file which is digitally signed. I need to write a PowerShell command which could get me the Digest Algorithm that is used for the Digital Signature.
Digest Algorithm info I need:

I tried with Get-AuthenticodeSignature but this didn't get me the Digest Algorithm info.
After running the following command I get the below result.
Get-AuthenticodeSignature "C:\Program Files\Application Verifier\vrfauto.dll" | Format-List
Results of above:

So what you are looking for is
Lets go over how we got to there. First i find a file that has a Digital Signature. I will use PowerShell-6.1.2-win-x64.msi for this example.
We see there is a object for the SignerCertificate
So lets see what that holds
Now we see there is a SignatureAlgorithm property
Now we dig one more deep
We get :
We can see there both strings so we test out which is better for us...turns out its friendly name :
Returns