You are so far from your tagline it's not even funny. The President can in fact order the military to do anything he wants.
There are military and political checks in place and those orders may not be followed but the President is commander in chief.
I guaranty you that if he ordered them to commit a massacre it would be a crime.