There are 3 different kinds of order action. No target, target point and target unit. Each has its own list of orders for abilities. Choose order for ability your custom one is based on. Not all abilities have orders, in which case use JASS and order ID to cast.