Functions/Get-Folders.ps1


function Get-Folders {
    <#[CmdletBinding()]
    param (
 
    )
    DynamicParam {
        $dynParam1 = New-Object -Type System.Management.Automation.RuntimeDefinedParameter("DP1", [string])
 
        $paramDictionary = New-Object -Type System.Management.Automation.RuntimeDefinedParameterDictionary
        $paramDictionary.Add("DP1", $dynParam1)
        return $paramDictionary
 
    }#>



    [CmdletBinding()]
    param(
        [Parameter()]
        [ArgumentCompleter( {
                param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
                Get-ChildItem "C:\temp\WI\$wordToComplete*" -Name | ForEach-Object { "`"$_`"" }
            })]
        [string]
        $ISOFile,

        [Parameter()]
        [ArgumentCompleter( {
                param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters )
                Get-VM "$wordToComplete*" | ForEach-Object { "`"$($_.Name)`"" }
            })]
        [string]
        $VMName

    )

}