I kinda doubt it... making a campaign from scratch seems quite daunting in and of itself; writing a program to do so seems like it would only be harder!
Maybe one of the people who have successfully made campaigns would like to do this???
__________________
The Ed draws near! What dost thou deaux?
1) To start with, you can take the existing Stock or P&N-ism...
2) Rip out the story. Easiest done by unlinking the Sol warppoint, and then removing Starbase Terra or moving it to another system.
3) Set all the system on the map to be visible :=false to remove them from consideration.
4) The program now only has to fiddle the startingships.txt, the enemyappearance, and the fleets. Perhaps a few others to get fancy, but I think those 3 may be enough.