This will get every certificate installed on the local machine:
Get-ChildItem Cert:\ -Recurse
This will get all the certs in the local machine personal store:
Get-ChildItem -path cert:\LocalMachine\My
Get all the certificate installed on the local machine expiring in 30 days:
Get-ChildItem Cert:\ -Recurse -ExpiringInDays 30