Just some free advice. You don't need any scripts. There is a setting in security that allows you to install apks from unknown sources. If you want to install your own apk, just upload it on a website, browse with your phone to that address, download it and install once you have the security setting changed to allow unknown sources.