Button to execute shorcode [closed]

That could be have a sense if the shortcode is only for content and if that can help you to limit the charge of queries.

Then use wp_ajax and do_shortcode in.

https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_(action)
https://developer.wordpress.org/reference/functions/do_shortcode/

But keep careful because a lot of shortcodes define css in wp_head & js in wp_footer, so with this solution it will not work nicely.