Java String Method To Find Substring In Powershell Script