Fixed powershell errors in pack script and yml