Convert C Code To Powershell Script