After changing the Flutter SDK channel from Stable to Master I now get this error when running Flutter commands:
Error: PowerShell executable not found.
Either pwsh.exe or PowerShell.exe must be in your PATH.
Solved my problem after installing Windows Management Framework 5.1
Link: https://www.microsoft.com/en-us/download/confirmation.aspx?id=54616.