Helper/Update-SvgTag.ps1
function Update-SvgTag { param ( [Parameter(Position=0, Mandatory=$true)] [string]$SVGFile, [Parameter(Position=1, Mandatory=$true)] [string]$Version ) $svg = Get-Content -Path $SVGFile -Raw $svg = $svg -Replace 'X.Y.Z.0', $Version $svg | Set-Content $SVGFile -Force Write-Verbose "Inserting version $Version" } Export-ModuleMember -Function Update-SvgTag |