how old is the windows machine, Win 10 or is it much older? if older than win 10 I'd find another way to get a Windows license, otherwise you can take that License and set it up like a grown up on the Apple device (and end up with a real computer and an apple mac book)
You can run Windows applications on a MacBook using Apple's Boot Camp to install Windows
Or by using virtualization software like Parallels or PlayOnMac.
Either method allows you to access Windows programs, but Boot Camp requires rebooting (in to Windows), while virtualization lets you run them alongside macOS.
Apple Methods to Run Windows Apps on MacBook Boot Camp
Compatibility: Works on Intel-based Macs (aka any recent one).
Installation: Use Boot Camp Assistant to create a Windows partition.
Usage: Requires rebooting to switch between macOS and Windows.
Windows License: Required.
Virtual Machines
Options: Parallels Desktop, VMware Fusion.
Compatibility: Can run on both Intel and Apple Silicon Macs (with limitations).
Installation: Install Windows within a virtual environment.
User Experience: Allows running Windows apps alongside macOS apps without rebooting.
Windows License: Required.
PlayOnMac
Compatibility: Free software for running many Windows applications.
User Friendliness: Simple to use.
Windows License: Not needed.