Azure Release Pipeline Fails Using Expand-Archive Command
This was answered via StackOverflow by Kevin Lu:
https://stackoverflow.com/a/66739852/1224614
In short, the second suggestion he made to update to PowerShell 7 and adding the environment information worked. I also had to run the script to reregister the Azure agent on the target server.