Restart IPSec-Tunnel via script

Hi,

how can I restart an IPSec-tunnel via script? I just don't want to stop and start a connection on the Webinterface ("IPSec Connections").