Migrating C# console application to Azure functions using PowerShell