simple write all your logic in a regular php file with laravel syntax. The php file don't need to be inside your laravel folder.
Next start Tinker
And the type
include('path_to_your_file');
hit enter and all your code with run as Tinker would include your script into the laravel tinker