Import .cer certificate from Windows command line
Powershell solution, using System.Security.Cryptograpy.X509Certificates:
$filename = "MyFileName.cer"
[Reflection.Assembly]::Load("System.Security, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a")
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($filename)
$store = New-Object System.Security.Cryptography.X509Certificates.X509Store([System.Security.Cryptography.X509Certificates.StoreName]::My,[System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite);
$store.Add($cert);
Sorry for all the full namespace specifications, but there's no "using" directive in PowerShell.
I don't know how to import it from the command line, but you don't need MMCs in order to install a certificate, double-clicking on it is just enough.