I once wrote PHP which generated ASP+VBScript code as output. These PHP scripts were run through the PHP command-line client (not Apache mod_php) which was called from a Perl script, triggered by cron.