I have previously made some custom Python commands in Rhino 5, but when trying them out in Rhino 6, commands that calls commands in the Rhino Commandline doesn’t work anymore. Calling rhino commands from a python script directly in the Python editor works fine. I have tried with both rhinoscriptsyntax and RhinoCommon. Example of python command not working:
Not sure if this will solve your problem but according to the docs for your Python command to be recognised on the command line Python needs to be loaded. You can do this by typing EditPythonScript after you start Rhino. This isn’t very user friendly when you want to distribute your Python plugins so C# plugins might be a better option.
Note : Sometimes, using this system, Rhino requires that Python be loaded before it can see the new command for the first time in a session - running EditPythonScript , or any other python script should allow the command to work.