Powershell While Loop Syntax In Json Format