Also you can force an unprompted shutdown/restart by holding option when selecting the Apple > shutdown/restart menu items.
Alt/Option also toggles the “quit” on dock context menu to “force quit” without waiting for the app to go unresponsive or invoking the command-ESC force quit dialog.