Internal/Import-DataFlow.ps1

function Import-DataFlow {

    [CmdletBinding()]
    param (
        # The path of the export file, that should be imported.
        [Parameter( Mandatory )]
        [ValidateScript({ $_.Exists })]
        [System.IO.FileInfo] $Path
    )

    process {
        $header = Get-Content -Path $Path -Raw | ConvertFrom-Yaml
        $flow = New-DataFlow @header
        Write-Output $flow
    }

}