Ok So I know this has been opened a long time ago but I have a solution I have created this script to work in powershell and it creates the qtree in a volume ands the quota and ntfs permissions and then will add an email owner for you in dfm. I am not a powershell or script guru by no means but it gets the job done. If anyone has any suggested improvements please share.
############################################################################################################
#Add Data Ontap Module
Import-Module Dataontap
#Set variable for controllers
$vfl01 = Connect-NaController vfiler-01
#Set variables for new creations (This will be for the new qtree and quota to be set THIS WILL ALWAYS NEED TO BE EDITED)
#quota size can be done in G =GB M = MB K =KB
#####################################################
$vfiler = $vfl01
$vol = "volumename"
$qtree = "qtreename"
$quotasize = "20G"
$quotalimit = "20G"
$quotaemail = "email@company.com"
#####################################################
#Create new qtree
New-NaQtree /vol/$vol/$qtree -Controller $vfiler
#Disable quotas for volume
Disable-NaVolQuota $vol -Controller $vfiler
#Adds quota to the qtree
add-NaQuota tree /vol/$vol/$qtree $vol -DiskLimit $quotasize -Threshold $quotalimit -Controller $vfiler
#Enables quotas on volume
Enable-NaVolQuota $vol -Controller $vfiler
#Add NTFS Permissions to share folder
icacls \\$vfiler\$vol\$qtree /grant corp\$qtree:"(OI)(CI)M"
#Test NTFS permisiions
#icacls \\$vfiler\ps$\$qtree /grant corp\user:"(OI)(CI)M"
Write-Host "Adding QTREE owner in DFM/Operation Manager" -BackgroundColor White -ForegroundColor Black
sleep 135
#Set the qtree owner email on the dfm server
dfm comment set $vfiler":"/$vol/$qtree ownerEmail=$quotaemail
Write-Host "Share Creation is complete Please copy and paste below into ticket" -BackgroundColor Black -ForegroundColor Yellow
Write-Host "Created \\$vfiler\$vol\$qtree with $quotasize Quota size" -BackgroundColor Black -ForegroundColor Yellow