Create a ls.bat file with the contents:
the %1 is the parameters passed into the command so that you can do ls My Documents or just ls.
There are different places to put the ls.bat file but as long as it’s in the %PATH% environment variable it doesn’t matter where it is.
For example creating it in C:\windows\system32 requires no further changes if you have access to that directory.
This method can be applied to other commands too.