Stellaris own command

This command allows you to take ownership and control of the specified fleet, starbase or planet. Uncolonizable celestial bodies will have no capital building.
Command syntax
How to open the console in Stellaris
Press the ~ / ` key to open the command console. This key is located at the top left of the keyboard, usually under the F1 or ESC key. Type the command and press the Enter key.