Revised Function enabled CmdletBinding

Modified the script to be a cmdlet.