Combined 5.5 and 5.6 functionality into one script

I mostly use this CLI script to create testing environments for addons and themes. Since I need to test on 5.5.x and 5.6.x, it's really useful to have everything in one CLI script.