How do I make a parameter required in PowerShell? I have tried to use Mandatory=$true but it's not worked for me and I got "Unexpected attribute parameter", can you guide me on how to set the parameter as mandatory in PowerShell?
param(
[string]$FirstName[Parameter(Mandatory=$true)],
[string]$Company[Parameter(Mandatory=$true)]
)