Private/Set-EnvironmentVariable.ps1
function Set-EnvironmentVariable { [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '', Scope='Function')] #[System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingWriteHost', '', Scope='Function')] [CmdletBinding()] param( [String]$name, [String]$value ) [System.Environment]::SetEnvironmentVariable($name, $value) } |