This is the cleanest approach for scripted deployment via PowerShell.