Generating Maven projects in batch mode using PowerShell

It just took me 75 minutes to create a Maven quickstart project on Windows 10 using PowerShell in batch mode.

DONT MAKE MY MISTAKES.

Do the following instead:

Full example:

mvn archetype:generate -B "-DarchetypeGroupId=org.apache.maven.archetypes" "-DarchetypeArtifactId=maven-archetype-quickstart" "-DarchetypeVersion=1.1" "-DgroupId=com.example" "-DartifactId=app" "-Dversion=1.0-SNAPSHOT" "-Dpackage=com.example.project"