Fixed CMDlet regex, error handling, and improper closing brace placement.
Fixed CMDlet regex, error handling, and improper closing brace placement.

jebaile7964/PowerShell-Code-Samples,jebaile7964/PowerShell-Code-Samples,jonathanelbailey/PowerShell-Code-Samples,jonathanelbailey/PowerShell-Code-Samples