Java String Method To Find Substring In Powershell For Windows