FileHandling/Get-FileListFromFolder.ps1

function Get-FileListFromFolder {
    param(
        [parameter (Mandatory=$True)]
        [string] $workFolder
    )


    $fileList = ""
    foreach ($f in Get-ChildItem($workFolder)) {
      $fileList += $f.name + ","
    }

    return ($fileList.TrimEnd(","))
}

Export-ModuleMember -Function Get-FileListFromFolder