Cant open atom from cmd

hi
i tried to open file from cmd , i wrote atom filename.html
and he gave me this error
‘atom’ is not recognized as an internal or external command,
operable program or batch file.

i need help
thank you