Welcome to Android Central! Are you talking about the Recovery Menu?
Unless you're actively doing something on that menu, you should be able to force a shutdown safely by pulling the battery (if possible), pressing and holding Power for 10-15 seconds, or (if it's a Samsung device) pressing and holding Power and Vol Down for 10-15 seconds.