When using deployment tools (like PDQ) the multi-line params caused an exception when running the nested ps1 script. Changing it to an by-line approach solved this.