When running hooks/stop-hook.sh with PowerShell (pwsh) on Windows, it will encounter a problem where it cannot be executed. This is usually because Windows cannot directly run UNIX Shell (.sh) scripts by default, unless the appropriate environment (such as Git Bash, WSL, or Cygwin) is installed. In addition, the file format and path syntax of .sh scripts are different from Windows, making PowerShell unable to recognize or correctly execute them.
Solutions include converting the script into a .ps1 file or executing the script through an installed Bash environment on Windows.