Powershell Select String Count Python String Replace At Index