You can now use the latest version of PowerShell with Azure Functions.

Source