Convert Powershell Script To Azure Function Dependency Injection