Maybe this helps: https://gist.github.com/olivier-m/6200184
You would need the Software Developer Kit (SDK) with Android Debug Bridge (ADB).
On the first link go to VIEW ALL DOWNLOADS AND SIZES and scroll down to SDK Tools Only. I don’t think you need the bundle (with the development environment) for only using ADB.
You might need the Java Development Kit (JDK) also, but currently I am not sure of that.
There are a lot of tutorials on the topic, so you may have to do some research. But honestly, the easiest way would be to backup your personal data and reset your phone to get rid of the GApps…