Starting and stopping tasks isn't really what Pulumi is designed to do. It's for creating infrastructure. A task is considered infrastructure, so it'll create a task, but it won't stop or start it.
You can use the AWS SDK for that. And since Pulumi programs are normal programs, you can call the SDK from within your Pulumi program. You do need to remember that your code does not run imperatively: when you say "create a new task". Pulumi makes note of the requirement for a new task, and will create it at some later time.