This page has moved to https://www.koskila.net/properly-checking-if-an-item-in-a-folder-is-a-directory-or-not-in-powershell/
If you are not redirected automatically, please click the link above.