Added Invoke-NSCustomQuery function