I am doing the below approach to retrieve the records but don\'t know how to make a loop in splatting ` function GetService { [cmdletbinding()] param (