Script halted when creating content DB

Topics: Support
Apr 1, 2014 at 5:13 PM
My script ran through all the way to creating a new content database, and I got this output:

Creating new content database "PROD_MySiteHost"...
Get-SPWebApplication : Cannot find an SPWebApplication object with Name, Id, or Url: http://VM-SPWEB.
At C:\SP\Autoinstaller\AutoSPInstallerFunctions.ps1:2635 char:80
New-SPContentDatabase -Name $siteDatabase -WebApplication (G ...
CategoryInfo : InvalidData: (Microsoft.Share...tWebApplication:SpCmdletGetWebApplication) [Get-SPWebApp
lication], SPCmdletPipeBindException
FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SpCmdletGetWebApplication
Script halted!

Is it looking for a managed path? I have my web application URL set to http://localhost, but the Managed Path URL is customized.

Please let me know if there is anything more I should post, but if there is anything simple I ought to be checking. Thanks for your time!