How do I change the shape scale in the Particle System via script?

I don’t know if I’m missing something or if it’s an issue with the particle system, but when I try to change the shape scale in the particle system via script I get:“Cannot modify the return value of ‘ParticleSystem.shape’ because it is not a variable”.

This is the code I’m using:

public class AspectRatioScript : MonoBehaviour{
    void Awake(){
        ParticleSystem stars = transform.Find("Stars").GetComponent<ParticleSystem>();
        Camera gameCamera = gameObject.GetComponent<Camera>();
        stars.shape.scale = new Vector3(2f, 1f, 1f);
    }
}

You can’t take the shortcut. You need to define the struct of the Shape module first:

var sh = stars.shape;
sh.scale = new Vector3(2f, 1f, 1f);