Attached is a sample powerhsell script that can be used to spin up clones in a VMware environment. The bottom part of the script will spin down and delete the clones to help simulate a dynamic automated environment. If you do not want the clones to be delete, make sure to remove or comment out that part of the script.
As always, please make sure you test out the script in a lab environment prior to utilization.
Primary setting information to by filled out:
$vCenter = 'VCENTERNAME'
$user = 'USERNAME'
$password = 'USERPASSWORD'
$hostName = 'HOSTNAME'
$datastore = 'DATASTORENAME'
$vmTemplate = 'TEMPLATENAME'
$spawnVmsNamePattern = 'NAMING_PATTERN'
$numberOfVmsToBeSpawned = NUMBER_TO_BE_SPAWNED
$vmsLifetimeInMinutes = TIME_TO_LIVE