Install python with a script or powershell

Im looking for some help with an install script. We want to push out python to end users in the background via powershell or script. Has anyone had any success with it?

The term to search for is “silent install” on windows.

It is documented here 4. Using Python on Windows — Python 3.12.1 documentation

I found this cmd - How to install Python using Windows Command Prompt - Stack Overflow
which has a worked example.