Hi @chill_gis_dude,
Take a look at the following scripts here. The scripts won't accomplish exactly what you're looking to do, but should provide some guidance. For example, here is the portion of code that creates the Enterprise account by reading information from a CSV file: