You are making a mistake I discussed on another thread earlier today.
You simply cannot put a HDD on which Windows 10 was installed on one machine into another machine (even with the exact same hardware) and expect it to work.
If a given computer has ever had a legally licensed/activated copy of Windows 10 installed on it Microsoft maintains the license for that computer on its servers based on the motherboard ID. Windows 10 itself on that computer also keeps its own local record of which motherboard it's licensed for. If you transplant a disc drive where Windows 10 was installed on a different machine into another machine there is a mismatch in the motherboard ID and, thus, you do not have a valid legal copy of Windows 10 that can boot on that machine.
It is a simple matter to do a clean install of Windows 10 on a new/wiped hard drive on the machine where you need for it to run and if it's been legally licensed on that machine before you don't need to enter a license key and Windows 10 will relicense itself as soon as it has connectivity to the MS servers to do so.
You need to go to the Microsoft Windows 10 Download Page, download the ISO and create bootable media, and reinstall Windows 10 on the machine where you need it back from that machine itself.
Brian AKA Bri the Tech Guy (website in my user profile) - Windows 10 Home, 64-Bit, Version 1803, Build 17134
Memory is a crazy woman that hoards rags and throws away food.
~ Austin O'Malley