I would like to create an object call enemy by using another object call enemySpawner

the property of enemy are:

 public float movingSpeed;

and i would like to use enemySpawner to spawn the object enemy with different moving speed.

How can I do this as each enemy have different moving speed? Thank you.

GameObject newEnemy = Instantiate(enemyPrefab, newPosition, Quaternion.Identity) as GameObject;
newEnemy.GetComponenet().movingSpeed = theSpeedYouWant;