Well... for example, if you just want to shoot at an enemy tank (or just an empty tank) use this:
nameofalliedtank dotarget nameofenemytank
and then
nameofalliedtank dofire nameofenemytank
If you want a tank to shoot randomly at a position, try searching it in the forums or use a script from the editors depot...