Hi,
The command does not look correct, please check the documentation and it should be ending with .ps or ps1. Not sure why you are typing the URL? Please post the script location and command you are typing.
Usually it is ./OnboardingScript.ps1 for windows server.
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.