How can I use appium to automate Android device and windows in the same framework

While using appium to automate android device, can i use same driver to automate a windows app? Basically I am currently using Appium with UIAutomator2 to automate Android device. But there are instances where I need to say invoke a License generator app on my windows machine (where appium server is running) to generate a license for the Android app. In such cases how can I switch between automating the app on windows and then going back to automating the app on android?