Updated on 2025-12-17 GMT+08:00

Running PowerShell Scripts Failed

Symptoms

The error message "module_stderr": "Test-Path : Cannot bind argument to parameter 'Path' because it is an empty str\r\ning. is displayed.

Cause Analysis

Ansible is used to deploy the action Run PowerShell Script. The Windows path incorrectly uses a backslash (\). A forward slash (/) should be used.

Solution

Check the entered path and ensure that the path uses forward slashes (/).