Using Rest Api From Powershell Execution Time