Specify the path when referencing the enterprise iso instead of depending on script to know it since it would be the only iso in the folder... In your case, it would have been c:\teamsscript\winenterprise.iso. Had the same issue as well; Microsoft is pretty terrible with their documentation regarding this.