The straightforward answer is to grab an existing admin command script rather than write one from scratch. BCGames' admin command script and Person299's are the two community favourites, and both are well regarded.
Insert one into your place in Roblox Studio, position it in the Workspace, and the command list becomes available in your own game.