function New-OrbSymLinks { <# .SYNOPSIS Creates a SymLink between a orb folder and orb/shared .EXAMPLE New-OrbSymLinks #> [CmdletBinding()] [OutputType()] param() $logLead = Get-LogLeadName $appFolderNames = Get-OrbSymLinkFolderNames $orbPath = Get-OrbPath foreach ($appFolderName in $appFolderNames) { $appPath = Join-Path -Path $orbPath -ChildPath $appFolderName $sharedPath = "$appPath\bin\shared" $orbShared = Join-Path -Path $orbPath -ChildPath "shared" Write-Host "$logLead : testing path: $appPath" if ((Test-Path $appPath) -eq $true) { Write-Host "$logLead : testing symlink path: $sharedPath" if ((Test-Path $sharedPath) -eq $false) { Write-Host "$logLead : Creating SymLink: $sharedPath" New-Symlink -ActualFilePath $orbShared -TargetFilePath $sharedPath } } else { Write-Error "$loglead : Symlink source path not found: $appPath" } } }