Powershell Script for Hostrename is not working from Bigfix

Try saving the console output to a file so you can see what the error message is. Tips at Tip: Running Commands and Saving Output (Windows)

For PowerShell it will be something like

waithidden cmd.exe /c "powershell.exe -ExecutionPolicy Bypass -File "C:\temp\rename.ps1" > c:\temp\output.log 2>&1"