Nice idea but i had to do a bit of modification to get this to run the WMI query as a service account. It also didn't work if you had multipule licence types (a slightly different wmi query)
tomorrow when i get into work i will tidy it up and post it.... also what is the point of launch.exe? it didn't seem to work when using it so i just bypassed it.
so very good idea, but needs some work to be a usable template for other people.