If you are nostalgic and would like to be able to revisit codes you have written in GWBasic or Turbo Pascal, or teach your kids the earlier programming languages you have learned, you would not be able to run the interpreter or compiler directly in Windows 10. What you need is an emulator like DOSBox.
More