Public/Get-VectorDifference.ps1

function Get-VectorDifference {
    <#
    .SYNOPSIS
        Subtracts one vector from another.
    .DESCRIPTION
        Returns a new Vector that is the component-wise difference Vector1 - Vector2.
    .PARAMETER Vector1
        The vector to subtract from.
    .PARAMETER Vector2
        The vector to subtract.
    .EXAMPLE
        Get-VectorDifference -Vector1 (New-Vector 4,5,6) -Vector2 (New-Vector 1,2,3)
    #>

    [CmdletBinding()]
    [OutputType('Vector')]
    param(
        [Parameter(Mandatory, Position = 0)]
        [Vector] $Vector1,

        [Parameter(Mandatory, Position = 1)]
        [Vector] $Vector2
    )

    return $Vector1.Subtract($Vector2)
}