Just for fun, here's a single line of code to retrieve the OA3 key:
 Code:
$strComputer = "."
? "OA3xOriginalProductKey = "+GetObject("winmgmts:\\"+$strComputer+"\root\cimv2").ExecQuery("Select * from SoftwareLicensingService").ItemIndex(0).OA3xOriginalProductKey