If you are using JSF or you don't mind adding a JSF Facelet to your WAR, you can use the cli-resolver. This is a project that is in its early stages, but it works quite well and I have a demo that does lots of things with deployments. It sounds like the kind of thing you are looking for.
If you don't want to use JSF then you can look at the cli-resolver code and see how it uses CLI to execute commands on the server side. The resolver itself is only three classes.
I would be using it from within an EAR, but looking at the code it gives me exactly what I need. Thanks!