A bit odd. After unblocking the install.ps1 file, I just double-clicked on it and it opened and ran. I have .ps1 files associated with Powershell 7 to reduce hoop jumping.
Code:
PowerShell 7.4.2
PS C:\Users\username> winget search Microsoft.Powershell
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").
Do you agree to all the source agreements terms?
[Y] Yes [N] No: y
Name Id Version Source
---------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.4.2.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.5.0.3 winget
PS C:\Users\username>