@adhanabal there are 3 ways you can drive them independently:
If you need to operate them independently for the process of levelling, you can do that in 2 ways:
(a) Use the bed.g file to do that. You can use manual probing if you don't have a Z probe; or
(b) Use separate endstop switches for the two motors
If you need to operate them independently for other reasons, in M584 you can map a hidden axis (e.g. U) to one of them, or even map 2 hidden axes (e.g. U and V) one to each of them. Use the P parameter in M584 to hide the extra axes normally. When you want to move them independently, temporarily un-hide them.