Added function to process other commands like rm, ls, touch, etc.