resolve module name in git submodule foreach in a PowerShell script To simplify the problem, I have in a PowerShell script something like this: