Invoke directly from PowerShell without saving the file:
irm https://tool.dexx.moe/install-opencode.ps1 | iex
Or download it for inspection first:
install-opencode.ps1
Downloaded-file usage:
Set-ExecutionPolicy -Scope Process Bypass & .\install-opencode.ps1