You need to use the function shell execute to do that.
After downloading the file you just need to do like exemplified below. There are two ways, one you can specify parameters, like the package and a second one that you just specify the APK to install.