It permits users to execute commands in the shell, but does not permit. $arguments = '-file C:\Users\Public\script. Microsoft Windows PowerShell command line shell and scripting language helps IT. $workDir = 'C:\Windows\System32\WindowsPowerShell\v1.0\' $powerLoc = 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' Sign-in with a local user or a domain user and the password. Ask for the users credentials as follows: cred Get-Credential -UserName 'DOMAIN\USERNAME' -Message ' '. I would suggest that you change the GoAnywhere Service under the Logon Tab and have GoAnywhere started by a Service Domain Account that has the permissions you need to execute the powershell script. Method 2: Run a PowerShell script as a different user interactively. $password = ConvertTo-SecureString -String '$password' -AsPlainText -Force GoAnywhere will automatically use the UserID used to start the GoAnywhere Service as the user running the local command. Note: Before the following script, I am executing domain join script as software component in which the following script depend on domain join script. I am using the following script to run the powershell script as different domain user which is something not working as vRA software component (install section) but works fine manually.