I have been working on converting the Python silent install script to a PowerShell script. Its been my experience, that after converting the script to an EXE format using py2exe, it had issues running on a significant number of devices which seemed to derive from the additional imports.
My thought was to convert the script to native Powershell. I have a programming background, however, I am not exactly a Powershell guru.I have made progress, but I am having issues with the get_response function.
Within PS I wanted to verify that the Username existed so I could know if I was on the right track or not. I have not done any other conversions yet for the existing code. It seems my implementation of Invoke-RestMethod is incorrect. Could anyone point me in the right direction?
Github with PS: