Param ( [parameter(Mandatory = $true)] [string] $Version, [parameter(Mandatory = $true)] [string] $LinuxSHA, [parameter(Mandatory = $true)] [string] $WindowsSHA, [parameter(Mandatory = $true)] [string] $ThemesSHA ) $content = Get-Content '.\oh-my-posh.json' -Raw $content = $content.Replace('', $Version) $content = $content.Replace('', $LinuxSHA) $content = $content.Replace('', $WindowsSHA) $fileHash = Get-FileHash post-install.ps1 -Algorithm SHA256 $content = $content.Replace('', $fileHash.Hash) $content = $content.Replace('', $ThemesSHA) $content | Out-File -Encoding 'UTF8' '.\oh-my-posh.json'