$pass = ConvertTo-SecureString -String "12345" -Force -AsPlainText
$thumbprint = (New-SelfSignedCertificate -Type Custom -Subject "CN=Microsoft Corporation" -KeyUsage DigitalSignature -FriendlyName “VLC Applicaton Certificate" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")).Thumbprint
Export-PfxCertificate -Cert Cert:\CurrentUser\My\$thumbprint -FilePath "c:\temp\VLCmediaplayer.pfx" -Password $pass
Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\Root -FilePath "c:\temp\VLCmediaplayer.pfx" -Password $pass