functions/Add-Path.ps1

function Add-Path
{
    <#
        .SYNOPSIS
            Prepends a directory to the system PATH variable for all subsequent actions in the current job.
            The currently running action cannot access the new path variable.
        .EXAMPLE
            Add-Path -Path C:\foo\bar
    #>

    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$true)]
        [string]
        $Path
    )
    
    Write-Output ("`n::add-path::{0}" -f $Path)
}