Trying to use RPA with cmd prompt but not able to do so

I have been trying to add CommandPrompt.Activities package into my legacy project, but it is not getting being added. Please let me know which other package i can use?

What are you trying to achieve? Would PowerShell be an alternative? If so, you could use Invoke Powershell (https://docs.uipath.com/activities/other/latest/workflow/invoke-power-shell).