The $libkey variable will now contain your LibraryKey.$advinst = new-object -comobject Advanced Installer
$proj = $advinst.loadproject("your project path")
$licensing = $advinst.Licensing
$libkey = $licensing.TrialsAndRegistrations.Registration.LibraryKey