Microsoft already provides cmdlets for github use cases.
PowerShellForGitHub
https://github.com/Microsoft/PowerShellForGitHub
Even the link you post gave you an answer:
curl https://api.github.com/repos/crs2007/ActiveReport/contents/ActiveReport
curl is an alias in PowerShell
Get-Alias -Name curl
# Results
<#
Get-Alias -Name curl
CommandType Name Version Source
----------- ---- ------- ------
Alias curl -> Invoke-WebRequest
#>
# Get specifics for a module, cmdlet, or function
(Get-Command -Name Invoke-WebRequest ).Parameters
(Get-Command -Name Invoke-WebRequest ).Parameters.Keys
Get-help -Name Invoke-WebRequest -Examples
Get-help -Name Invoke-WebRequest -Full
Get-help -Name Invoke-WebRequest -Online
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…