Powershell Right String Function In Sql