It means adequate, accurate and appropriate way. Properly, appropriately. Execute something so successful or desirable.
rightly - refers to the expression: wisely, timely manner, suitably, properly -