PSMessageDetails: Exception : System.NullReferenceException: Object reference not set to an instance of an object. at System.Management.Automation.CommandInfo.get_Parameters() at Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.UseCorrectCasing.d__0.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer.<>c__DisplayClass85_1.b__2() TargetObject : D:\TeamcityAgent\work\45bc9459f9b7096e\Objectivity.Employee.Maintenance\Public\Scheduled\Set-EmplPhoto.ps1 CategoryInfo : InvalidOperation: (D:\TeamcityAgen...t-EmplPhoto.ps1:String) [Invoke-ScriptAnalyzer], NullReferenceException FullyQualifiedErrorId : RULE_ERROR,Microsoft.Windows.PowerShell.ScriptAnalyzer.Commands.InvokeScriptAnalyzerCommand ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace: at , D:\TeamcityAgent\work\45bc9459f9b7096e\build\psake.ps1: line 85 at , D:\TeamcityAgent\work\45bc9459f9b7096e\build\psake.ps1: line 83 at Invoke-Task, C:\Program Files\WindowsPowerShell\Modules\psake\4.9.0\public\Invoke-Task.ps1: line 108 at Invoke-Task, C:\Program Files\WindowsPowerShell\Modules\psake\4.9.0\public\Invoke-Task.ps1: line 84 at Invoke-Task, C:\Program Files\WindowsPowerShell\Modules\psake\4.9.0\public\Invoke-Task.ps1: line 147 at , C:\Program Files\WindowsPowerShell\Modules\psake\4.9.0\public\Invoke-psake.ps1: line 306 at ExecuteInBuildFileScope, C:\Program Files\WindowsPowerShell\Modules\psake\4.9.0\private\ExecuteInBuildFileScope.ps1: line 57 at Invoke-psake, C:\Program Files\WindowsPowerShell\Modules\psake\4.9.0\public\Invoke-psake.ps1: line 258 at , D:\TeamcityAgent\work\45bc9459f9b7096e\build\build.ps1: line 61 PipelineIterationInfo : {}