Private/Test-VMConfigFolder.ps1
function Test-VMConfigFolder { # This function is never used in an evaluation context. Its sole purpose is to throw an exception if $VMConfigFolder doesn't exist. if ([System.IO.Directory]::Exists($VMConfigFolder) -eq $false) { $exceptionMsg = ($MsgTable.DirectoryNotFoundError -f $VMConfigFolder) $ex = New-Object -TypeName 'System.IO.DirectoryNotFoundException' -ArgumentList $exceptionMsg throw $ex } } #function Test-VMConfigFolder |