I would recommend going about this a different way. Here are two ideas:
(1) Pass the 2nd shortcode as the .Inner
of the 1st shortcode. For example:
{{< shortcode-1 >}}
{{< shortcode-2 >}}
{{< /shortcode-1 >}}
(2) Put the 2nd shortcode logic into a partial, then call that partial from your 1st shortcode. See an example of that here.