Get-SPPLicense
Gets the current license key for third-party products from www.sharepointproducts.com.
Syntax
Get-SPPLicense [<CommonParameters>]
Example
Retrieve the license key and save it to a text file.
Get-SPPLicense | Out-File license.txt