No, the PowerShell script won't change the solution xml, it will create/update Site Component records in the target environment
It's not clear if this is a supported solution or not, potentially not, however it's just a workaround I found to get it working
Are you using DevOps pipelines or is this Power Platform Pipelines? if the latter, this solution probably won't work at all