Powershell Variable Scope In Function Start Undefined Reference To Main