I got this error, to fix this error do not have spaces in App Site Subscription name, so name it AppSiteSubscription.
Error:
Set-SPAppSiteSubscriptionName : "App Site Subscription" contains invalid character ' '.
At C:\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:6013 char:9
I got this error, to fix this error do not have spaces in App Site Subscription name, so name it AppSiteSubscription.
Error: Set-SPAppSiteSubscriptionName : "App Site Subscription" contains invalid character ' '. At C:\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:6013 char:9