Powershell Script Local Variable And Global Variable Can Not Be Accessed