Powershell script to create task for migrating mailbox(es)

Hi

I tried to create a mail migration task using the follosing powershell script:
On Demand Migration – PowerShell API – Example Scripts - Forum - Quest On Demand - Quest Community

I always get the following error:
No parameter was found that corresponds to the parameter name “AssignO365License”.

The script has the following parameters configured:
SkipO365LicenseAssignment = $true
# O365LicenseToAssign = $null
O365LicenseAssignmentType = "Keep"

I also tried the following settings with no success:

SkipO365LicenseAssignment = $true
O365LicenseToAssign = $null
O365LicenseAssignmentType = "Keep"

Any ideas?

Regards