@sns - Thanks for reaching out to us.
ResourceType is optional since 1.3.1 release, before this version it was mandatory. Please ensure to use only 1 PS module version.
Hope this helps. and please feel free to reach out if you have any further questions.
Please don't forget to "Accept as Answer" and click "Yes" if the above response is helpful, so it can be beneficial to the community.