Used this to dump info about the #Powershell fired up by @Rundeck

write-host ‘Computer’ ; $Env:ComputerName ; write-host ‘PSVersionTable’ $PSVersionTable ; write-host ‘whoami’ ; whoami ; write-host ‘Environment variables’ ; gci env: ; write-host ‘get-variable’ ; get-variable