It may help if you post all of your code or at least the relevant part of the code you use.
In the answer on StackOverflow you linked it is clamed that the error indicates that the cipher is already disabled. Did you try the solution postet there?
yes, i did enable the cipher and tried the code again to disable same cipher i.e. passing cipher name as a variable but no luck and ended up with same error.
While I do not have any experience working with this kind of topic I have to admit that Get-TlsCipherSuite provides a weird output. So it is not that straight forward as usual.
Regardless of that you should never use format cmdlets like Format-Table and pipe their output to the next cmdlet. That has never worked AFAIK.
The way you determined the names and put them together results in a big string with concatenated names - not in an array of strings.
Run this:
The first thing you should do when you need to debug some code is to output the variables to the console and inspect them if they are what you’d expect them to be.