I’m looking into finding another solution to my problem by utilising “SetScalarParameterValue” which may end up being cheaper on performance but if anyone would like to post a solution
to my original question in case i or anyone needs to come back to it that would be great.