I have an old HP Laserprinter...completely out of date with Windows 10. I will have to buy a new printer, I guess.
I’d be surprised that if it worked under Windows 7 if you couldn’t just use the Windows generic driver for it. You may lose some bells and whistles, but it should still print.
Check with HP to see if there isn’t a new driver for Windows 10.
Look on-line first (and talk to someone with some computer savvy). I have an old Brother 32-bit printer that wouldn't work with my Win7 64-bit system. The Brother site had updated drivers.
Makes one wonder how LINUX can pretty much make peripherals work w/o all the hassle - even if some end up in "limp mode" where not all the fancy (and generally unused) "special options/features" don't work. Wonder why Microsoft can'twon't do that.