Actually it was quite simple. I used Pythons
subprocess.run("touch foo", shell=True, executable="/bin/bash")