Power method in array to raise its elements to power

Power method for arrays which raise the elements by a power of x, passed as arguements.