#!/bin/pwsh param($context) . "$PSScriptRoot/../../Scripts/Context.ps1"; Write-Host "Configuring PowerShell"; Write-Information "Allow addition of any number of profile files"; [Context] $context = $context; $context.AddPowerShellProfileStatement( @( '$profilePath = "$PSScriptRoot/profile.d/*.ps1";', 'if (Test-Path $profilePath) {', ' . $profilePath;', '}') -join ([System.Environment]::NewLine));