Substring In Powershell Script Block