Create Functions In Powershell Substring Function