Truck platooning is, by now, one of the major topics in transport science and freight transport. The benefits arising from the system explain the growing interest of the involved stakeholders and the many field-tests planned in the next years. This run towards truck platooning saw an abrupt acceleration but there are risks that should be accounted for. Even though field-tests are fundamental for the implementation of a new transport system, they will hardly cover all the traffic scenarios that a platoon of trucks will face on the European network. Therefore, there is the need for many more studies based on traffic simulation and for tools enabling traffic simulation software to reproduce truck platooning. In this framework, the paper has two aims, the first one being to report and describe a Python script to reproduce truck platooning with a common commercial simulation software. The second one is to apply said script to analyse what is the best driving strategy for a platoon of truck to limit the hindrance on the surrounding traffic while approaching a critical highway segment such as the on-ramp one. At the end of the paper, a comparison between three different strategies (driving as usual, dissolution and headway adaptation) is carried out and commented.