Windows Sandbox or some other virtualization tool can be useful for this, if you're on hardware that supports it and you don't need full performance.