In looking at powershell, the general assumption is that it's being used either for or on Windows machines in a homogeneous network.
Strictly within Linux, and only using "core" powershell, looking at automation:
You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
How can I use powershell in Linux to admin Linux with Ansible?