I'm seeing some different behavior here in ArcGIS Pro.
In this particular case I'm using
arcpy<SPAN class="punctuation token">.</SPAN>SaveToLayerFile_management<SPAN class="punctuation token">(</SPAN>in_layer<SPAN class="punctuation token">,</SPAN>out_layer<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
[Curiously, this works in the python command window but fails in a script tool].
When I try
arcpy<SPAN class="punctuation token">.</SPAN>management<SPAN class="punctuation token">.</SPAN>SaveToLayerFile<SPAN class="punctuation token">(</SPAN>in_layer<SPAN class="punctuation token">,</SPAN> out_layer<SPAN class="punctuation token">)</SPAN> <SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
in the python window with the same parameters the tool fails with an 000622 error. I tried to supply the other optional parameters but it still failed.