Functions/Data/Remove-UTF8BOM.ps1
Function Remove-UTF8BOM { [CmdletBinding()] Param([parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$Path) Process {[System.IO.File]::WriteAllLines($Path, (Get-Content $Path -Raw), (New-Object System.Text.UTF8Encoding $False))} } |