Public/sn_sc/Get-SNOWSCCart.ps1

function Get-SNOWSCCart {
    <#
    .SYNOPSIS
        Gets the current cart
    .DESCRIPTION
        returns the current cart properties
    .EXAMPLE
        Get-SNOWSCCart
        returns the cart object, no parameters required.
    .LINK
        https://github.com/insomniacc/PSSnow/blob/main/docs/functions/Get-SNOWSCCart.md
    .LINK
        https://docs.servicenow.com/csh?topicname=c_ServiceCatalogAPI.html&version=latest
    #>

    [CmdletBinding()]
    param()
    
    $URI = "https://$($Script:SNOWAuth.Instance).service-now.com/api/sn_sc/servicecatalog/cart"
    $Response = Invoke-SNOWWebRequest -UseRestMethod -Uri $URI -Method GET
    if($Response){
        return $Response.Result
    }
}