Suppose that $a$ and $b$ are positive integers with $a^n = b^2$, where $n> 2$ is an integer. Then $a = \sqrt[n]{b^2} = [\sqrt[n]{b}]^2$. You want to know all the ways this can happen.
If $a$ is a perfect square, say $a = c^2$ for a positive integer $c$, then you can take $b = c^n$, and then $a^n = c^{2n} = b^2$.
If $a$ is not a perfect square, then this situation can only happen when $n$ is even. Indeed, if $a = p_1^{e_1} \cdots p_s^{e_s}$ and $b = p_1^{f_1} \cdots p_s^{f_s}$ are the prime factorizations of $a$ and $b$ (with $e_i, f_i \geq 0$), then $a^n = b^2$ implies that $ne_i = 2f_i$ for each $i$. The assumption that $a$ is not a perfect square is equivalent to the claim that some $e_i$ is an odd number. For such $i$, the equation $ne_i = 2f_i$ implies that $n$ is even, as claimed.
So for $n$ even, every positive integer $a$ admits a corresponding positive integer $b$ such that $a^n = b^2$, since you can just take $b = a^{n/2}$ (an integer!).
For example, if $n = 4$, you can take for $(a,b)$ the pairs
$$(1,1); (2^4, 4^2); (3^4,9^2); (4^4,16^2); ...$$