While in-game you can state a "..., ATTACK ..." or "..., ENGAGE" command I was never able to find an according command for scripting...