AdminToolbox.FFTools.psm1

#Load Tips File
$tipspath = $PSScriptRoot + "\support\ffmpeg tips.txt"
$tips = Get-Content $tipspath

##Import Functions
$FunctionPathPublic = $PSScriptRoot + "\Public\"
$FunctionPathPrivate = $PSScriptRoot + "\Private\"
$FunctionListPublic = Get-ChildItem $FunctionPathPublic -Name
$FunctionListPrivate = Get-ChildItem $FunctionPathPrivate -Name

ForEach ($Function in $FunctionListPublic) {
    . ($FunctionPathPublic + $Function)
}

ForEach ($Function in $FunctionListPrivate) {
    . ($FunctionPathPrivate + $Function)
}

##Function to Add ffmpeg module files to PSModulePath
#Save the current value for PSModulePath in the $p variable.
$p = [Environment]::GetEnvironmentVariable("Path")
#Add the new path to the $p variable. Begin with a semi-colon separator.
$exepath = $PSScriptRoot + "\support\"
$p += ";$exepath"
#Add the paths in $p to the PSModulePath value.
[Environment]::SetEnvironmentVariable("Path", $p)