diff --git a/src/rezplugins/shell/_utils/powershell_base.py b/src/rezplugins/shell/_utils/powershell_base.py index f059bb248..9f1d7049d 100644 --- a/src/rezplugins/shell/_utils/powershell_base.py +++ b/src/rezplugins/shell/_utils/powershell_base.py @@ -297,7 +297,7 @@ def alias(self, key, value): # TODO: Find a way to properly escape paths in alias() calls that also # contain args # - cmd = "function %s() { %s @args }" % (key, value) + cmd = "function %s { & %s @args }" % (key, value) self._addline(cmd) def comment(self, value):