Zend certified PHP/Magento developer

Powershell 1 liner to get and install product key

Can I get and set the product key from bios in 1 line using cmd?

Currently I just use a batch file that contains

powershell.exe -c "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey" | clip

To get the product key

How can I instead just straight up install the key to the bios. Something like

powershell.exe -c "(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey" | slmgr

Is this possible?