Is There a Way to Have an App Automatically Log Into cPanel and Run Fantastico and Later Install WordPress?
I would start off by using PHP curl and later emulate a browser calling it. Then call the cPanel URL, parse the responses and POST/GET the needed login data to it. You can then retreive the WP install page using the session info that was returned within the login call.