How to script the setup wizard?

What are you trying to accomplish exactly? You want to automate creating an admin user and setting some settings?