fix Expand-Archive to use correct library
Expand-Archive giving syntax error in PowerShell v5.1 (A parameter cannot be found that matches parameter name 'DestinationPath')
I've added Microsoft.PowerShell.Archive to use it from the correct library.
Using PowerShell 5.1 and Get-Host | Select-Object Version, I currently have version 5.1.17763.5696 installed.
Using PowerShell 7 and $PSVersionTable | Select-Object PSVersion, I currently have version 7.1.3 installed.
I tried this just now in both PowerShell 5.1 and 7 and did not see any errors relating to Expand-Archive. That being said, adding Microsoft.PowerShell.Archive/ didn't cause any issues either so 🤷
I have version 5.1.26040.1000 installed and have issue =
with 7.5.0-preview.2 works fine