simple powershell script to clean a field

simple powershell script to clean a field

Hi,
As much as I check and have checked in the community I do not find where I fail, I execute a powershell script once I have created a user to clean a field.and it does not do anything to me.

When I run ADManager it indicates the log:

[12:23:04:353]|[05-16-2019]|[SYSOUT]|[INFO]|[50030]: Starting CustomScriptThread ...|
[12:23:04:353]|[05-16-2019]|[SYSOUT]|[INFO]|[150317]: Custom Script Command::powershell C:\Software\Personalizacion\ManageEngine\usernew.ps1 nappe11|
[12:23:04:353]|[05-16-2019]|[SYSOUT]|[INFO]|[150317]: Custom Script Command Array::[powershell, C:\Software\Personalizacion\ManageEngine\usernew.ps1, "nappe11"]|
[12:23:05:437]|[05-16-2019]|[SYSOUT]|[INFO]|[150317]: CustomScript Execution finished...|
[12:23:05:437]|[05-16-2019]|[SYSOUT]|[INFO]|[150317]: Result:Success|
[12:23:05:437]|[05-16-2019]|[SYSOUT]|[INFO]|[50030]: CustomScriptThread ::Thread-149941|

My script is:

Param([string]$sAMAccountName)

# Set-ADUser -Identity $sAMAccountName -mobile $null
Set-ADUser -Identity $sAMAccountName -MobilePhone $null

Attached screenshot of the script path

powershell C:\Software\Personalizacion\ManageEngine\usernew.ps1 %sAMAccountName%

                New to ADSelfService Plus?