If double selection in one equation exists, which command do I have to use?

I studied Heckman twostep, switching regression using stata code heckman and movestay. But it seems that they are not a solution for double selection in one equation.
If there is no command for it, which is the best way to solve my problem?