Don't know if this will help –
1. Install the program you want, if this works you have already 'won'. Right-click on the program's icon and select compatibility, you can then run this program eg. in Win XP, Vista or Win 7 compatibility mode. You can try and fiddle with the settings, it often works.
2. If you have Win 7
pro or Win 10
pro (no idea about Win 8, i avoided this)
you can install a free virtual machine (vm) with the OS of your liking, "Hyper-V" as the virtual machine is being called in the Windows world can be used to install native Dos, XP or whatever.
In Win 7 there is even a free Win XP included to use in Hyper-V if i remember right.
This usually works, if you need certain resolutions or memory or adapters for this machine you can adjust this in the Hyper-V settings, it will emulate it and this works in most cases.
Explaining how to do this with Win 10:
https://www.partitionwizard.com/resi...l-machine.html