Get-Ip.psm1


function Get-Ip {
    [CmdletBinding()]
    param ()

    # Process input from the pipeline
    process {
          Invoke-RestMethod -Uri "https://api.ipify.org?format=json" -Method Get
    }
}

Export-ModuleMember -Function Get-Ip