Changed all env variables CDS* to ACT* CDSSESSIONID -> ACTSESSIONID, etc.
Changed Get-Privileges to use correct ACT* variables and replaced any WriteLine calls with WriteObject calls.