Mental note - powershell is not C++

corrected where the value returned to $entry was from the local machine always