Managing scheduled tasks

What is the best (and smartest) way to create a scheduled task from a PowerShell script?
Is there any Powershell cmdlet I can invoke?
Regards
marius

Here you have all the cmdlets related to schedueled tasks:
https://technet.microsoft.com/en-us/library/jj649816(v=wps.630).aspx?f=255&MSPPError=-2147217396