need help convert PS script to Quest Powershell script

I ran my ps script directly on the server is work well but for some reason when I import to the Active Roles I got an error Term Get-ADUser is not recognized

hope someone could help me :-)

Get-ADUser -Filter * -SearchBase "DC=xxx,DC=xxx" -Properties * | Select-Object displayname,userprincipalname,AccountNotDelegated | Export-Csv -path C:\temp\UserAccountsensitiveCannotDelegated-TechnicalidAdminAccountsOU.csv