$bashProfilePath = Join-Path $HOME ".bash_profile" $requiredLine = 'eval "$(''/C/tools/miniforge3/Scripts/conda.exe'' ''shell.bash'' ''hook'')"' Add-Content -Path $bashProfilePath -Value $requiredLine Set-ItemProperty -Path $bashProfilePath -Name Attributes -Value ([System.IO.FileAttributes]::Hidden)