Take a look at the azcli script.
Using the azure-cli it is possible to update an existing Initiative, which is cool. This script does not change your current assignments, and does not assign the new Initiative. However, it does illustrate the creation and the update of an Initiative.