C# to Powershell

Hi, have just purchased PowerShell tools and have managed to get the license activated in VSCode (latest versions as of today) . I purchased specifically as saw your videos on Youtube for converting C# to PS. When i try to convert any code just disappears? also i easily want to import DInvoke and although video is from 2017 no option to past as Powershell - only option is using the command window to convert once pasted then disappears? any pointers on how to use this for conversion C# to PS welcome pleaseā€¦

Steve