Update TryAddingProfileItem member
Update TryAddingProfileItem member

* Changes the name to AddProfileItem
* Adds input argument validation

daviwil/PSScriptAnalyzer,PowerShell/PSScriptAnalyzer,juneb/PSScriptAnalyzer,dlwyatt/PSScriptAnalyzer