Create Functions In Powershell Substring