Replacing shell calls to adb

I’m reviewing some existing Appium-based automation for an Android app and in a few places there are direct shell calls to adb from within the code. I suspect the author did this because he or she could not find a good way to perform the equivalent action with Appium. Here is an example of the adb command:

adb shell am start -d https://<various_url_details_here>

When the automation executes it has the effect of triggering the ‘Open with’ dialog so that the user can tap on various options, such as the web browser or an app. Is there a way to execute such a command with Appium without directly executing shell commands? If such a way exists, is it a good idea?

A solution for this proposed on stack overflow was simply to use driver.get(url). It accomplishes the desired goal.