Added cmdlet binding, named function with ps "approved verb" naming convention. Removed hungarian variable naming style