Certainly! You're pretty good on the structure too. In case you need some help with the syntax:
Import-Module dataontap
$hosts = "foo","bar","baz"
Connect-NaController 10.61.169.28
$hosts | foreach {
New-NaVol "$($_)_boot" -Aggregate aggr0 -SpaceReserve none -Size 10g
New-NaQtree "/vol/$($_)_boot/$($_)_boot.q"
}
Another tip, if you aren't sure what a cmdlet will do, most cmdlets (in the toolkit or otherwise) support the "-WhatIf" switch which will show you the operation it will perform, but won't actually do anything.
Cheers,
Eric