Is there any way to get the executable path(.exe) location of any application using the application name?

is there any solution for this, to just pass the application name & get executable path