Started conversion to proper powershell standards.