A develop console for Unity let you input command string to execute debug functions. Only one line code to register custom command.