powershell/PSAvoidGlobalFunctions is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
tally disables this rule by default for Dockerfile
RUN snippets because a RUN executes
statements inline rather than defining cmdlets, parameters, or modules with external callers. Re-enable it with
include = ["powershell/PSAvoidGlobalFunctions"] or by setting
rules.powershell.PSAvoidGlobalFunctions.severity = "warning" in .tally.toml.Description
Globally scoped functions override existing functions within the sessions with matching names. This name collision can cause difficult-to-debug issues for consumers of modules. To understand more about scoping, seeGet-Help about_Scopes.