Convert Powershell Script To Azure Function App Environment