if ($Result.Count -gt 0) {
Write-Host -ForegroundColor Green "--------- Your script(s) contains commands that need to conform to the naming convention as per the 'New' column on the table below ---------"
Write-Output $Result | Format-Table
}
if($WriteToFile){
Write-Host -ForegroundColor Blue "Your updated script is on this path: $UpdatedFile"
}
Reference: https://github.com/microsoftgraph/msgraph-tools-migration/blob/34693fc8fd2414055c16c7cc34091a778615b851/Microsoft.Graph.Migration.Tool.psm1#L143C13-L147
Reference: https://github.com/microsoftgraph/msgraph-tools-migration/blob/34693fc8fd2414055c16c7cc34091a778615b851/Microsoft.Graph.Migration.Tool.psm1#L143C13-L147