Configured application uri for script-only application did not match application uri in path. Path: %1 Cause: Powershell ...

Configured application uri for script-only application did not match application uri in path.

Path: %1
Cause: Powershell cmdlets do not parse the contents of the path so they can't detect if the application uri specified in the path matches the application uri specified via the cmdlet.
Resolution:
Fix the application uri using Set-CSServerApplication cmdlet to match the application uri in the path.