something like this env-links.ps1
param()
Get-ChildItem -Path "apps" -Directory | ForEach-Object {
$appDir = $_.FullName
Write-Host "Creating symlink for $($_.Name)"
$envPath = Join-Path -Path $appDir -ChildPath ".env"
if (-not (Test-Path $envPath)) {
New-Item -ItemType SymbolicLink -Path $envPath -Target "..\..\.env" -Force | Out-Null
}
}
Write-Host "Symlinks created"
something like this env-links.ps1