A command in the script to make Spack accessible in PWSH was invoked with multiple arguments when it in fact requires a single argument.
Include support for powershell Prepend cmd and pwsh with [spack] to denote spack enabled shell