Run Scheduled Task on a server

With PS, how do I run a scheduled task on another machine (a server)?

Also, how do I get information about the scheduled task? I won’t need to force it to run if is scheduled to fire in half a minute anyway.

Thank you.

Please read below doc for your requirement.
https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/?view=winserver2012r2-ps