I want to pass desired position of the rock but it is not working?

Please refrain from posting screenshots of your code because it’s impossible to copy and paste lines from them. Instead, insert is as text in your answer and format it. If you do not know how to do that, follow this instruction.

What is the desired position? As it seems, you don’t use the passed on Vector3 object in your LargeAsteroidSpawner method but spawn the prefabs at the same position: transform.position.x and transform.position.y.