The Metaphysics of Morals by Immanuel Kant Chapter 2 Page 26

The categorical imperative which declares an action to be objectively necessary in itself without reference to any purpose, i.e., without any other end, is valid as an apodeictic (practical) principle.

Whatever is possible only by the power of some rational being may also be conceived as a possible purpose of some will; and therefore the principles of action as regards the means necessary to attain some possible purpose are in fact infinitely numerous. All sciences have a practical part, consisting of problems expressing that some end is possible for us and of imperatives directing how it may be attained. These may, therefore, be called in general imperatives of skill. Here there is no question whether the end is rational and good, but only what one must do in order to attain it.