Insert a number 1-8, and it will draw a polygon with that many sides. It technically can draw more sides than 8, however scratch's limited window messes it up. Press E to draw a new shape.
Took a bit of research, but essentially it's a lot easier than you think.