There is a process to assure that an order is a "Legal" one.
As we're finding out..."due process" and "legality" are not words that Donald Trump has any understanding or appreciation of...thank heaven there are Americans who do.
Link: https://www.bbc.com/news/world-us-canada-42065714