http://www.dynaverse.net/ is a good place to start for Starfleet Command 1, 2, 2.5 (Orion Pirates), and 3. As far as creating scripts, you can create Skirmish Missions if you know how to create Microsoft Visual C++ programs or use Fleet Mission Script Editor (FMSE) if you don't know how to create MS Visual C++ programs.
FMSE is freeware by EagleEye but it is limited. Using FMSE you can decide on the type of battlefield/terrain (i.e. open space, asteroids, planets, suns, black holes, nebula) and what ships and spacestations to be in the mission (limit is 6 groups with 6 ships per group) what their relationship is to each group (neutral, allies, enemies), and what each groups objective is (disable, capture, destroy) to the other groups.
http://www.battleclinic.com/docks/dock.php - is a good place to replace the objects (spaceships, spacestations, planets, stars, asteriods, moon) in Starfleet Command.
Hope this helps and good luck,
Navigator NCC-2120 USS Entente
/\