Hi Sandra,
Bolt has two options: tasks and plans.
Tasks consist of a Script (Shell, Powershell, Python, Ruby) and a .json file.
Plans are written in Puppet DSL.
Main difference:
Tasks run workflow actions like stop a service, do something and restart the service.
Plans are used to control tasks over a number of nodes.
In you case I would head to a task.
When using pdf, you can run pdf new task within a module.
You can then use bolt to execute a task:
bolt task run <task name> —nodes <comma separated node list>
The task istself:
#modules/demo/tasks/test.sh
#!/bin/bash
touch <file>
sudo touch <file>
Hth,
Martin