TrackingUtils.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function Import-USPS {
    param(
        $TrackingNumber,
        [Switch]$UseDefaultCredentials

    )

    Import-Html "https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=$($TrackingNumber)" 0 -UseDefaultCredentials: $UseDefaultCredentials
}

function Import-UPS {
    param(
        $TrackingNumber,
        [Switch]$UseDefaultCredentials
    )

    Import-Html "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=$($TrackingNumber)" 0 -UseDefaultCredentials: $UseDefaultCredentials
}