PowerShell incompatible with the sudo become plugin — Ansible troubleshooting

How to reproduce, troubleshoot, and fix the “The PowerShell shell family is incompatible with the sudo become plugin” Ansible runtime error.