After bringing the Visio Service Instance online, the AutoSPInstallerModule.psm1 script around line 2406 - Re-importing SP Powershell Snapin to enable new cmdlets... attempts to remove "Microsoft.SharePoint.PowerShell" snap in and subsequently re-add via the Add-SharePointPSSnapin function. This returns no errors.
Following this in the script an Invoke expression attempts to use Get-SPVisioServiceApplication (via a variable). At this point I receive an error stating that the cmdlet is not available.
Once the script completes, if I run Get-SPVisioServiceApplication it states it is not available. If I then run Add-PSSnapin Microsoft.SharePoint.Powershell, Get-SPVisioServiceApplication is then available. If I run the script a second time it completes without issue. I have also hard coded the Add-PSSnapin Microsoft.SharePoint.PowerShell command directly before the invoke expression to no avail.
Has anyone else experienced this or can offer any advice?