Public/New-bConnectApplicationFile.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Function New-bConnectApplicationFile() {
    <#
        .Synopsis
            Creates a new ApplicationFile for Applications.
        .Parameter Source
            Path or file
        .Parameter Type
            Type of the source
        .Outputs
            ApplicationFile (see bConnect documentation for more details)
    #>


    [OutputType("System.Management.Automations.PSObject")]
    Param(
        [Parameter(Mandatory=$true)][string]$Source,
        [Parameter(Mandatory=$true)][ValidateSet("FolderWithSubFolders","SingleFolder","File",ignoreCase=$true)][string]$Type
    )

    $_new_applicationFile = @{
        Source = $Source;
        Type = $Type;
    }

    return $_new_applicationFile
}