Create Project Parameter using dynamo or python script

You cannot directly create Project Parameters from Dynamo because the Revit API has not exposed those methods. You can create them through Shared Parameters and that process has been explained on here many times.