I believe you need to uninstall the key from the old device. https://www.tomshardware.com/how-to/transfer-windows-license-to-new-pc
However, if that doesn't work, you could always install an unlicensed version of Windows, which will have the 'please activate' watermark, and then, if you search for 'Microsoft Activation Scripts', who knows what GitHub might have.