I have a small script tool that works fine in desktop version of arcmap but when I try to run it from the catalog tab in the citrix version of arcmap I get the following error:

I found the following link related to the error 000824:
https://support.esri.com/en/technical-article/000013100
Adding the arcpy.CheckOutExtension makes no difference to the error.
Here is the code for the script:
<SPAN class="keyword token">import</SPAN> arcpy
locno <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>GetParameterAsText<SPAN class="punctuation token">(</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">)</SPAN>
year <SPAN class="operator token">=</SPAN> locno<SPAN class="punctuation token">[</SPAN><SPAN class="number token">3</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">7</SPAN><SPAN class="punctuation token">]</SPAN>
inFc <SPAN class="operator token">=</SPAN> <SPAN class="string token">"//work/work/plan/luam/1p2007/"</SPAN> <SPAN class="operator token">+</SPAN> year <SPAN class="operator token">+</SPAN> <SPAN class="string token">"/"</SPAN> <SPAN class="operator token">+</SPAN> locno <SPAN class="operator token">+</SPAN> <SPAN class="string token">"/data_for_item.gdb|data/proposed_LOC_polygon"</SPAN>
outFc <SPAN class="operator token">=</SPAN> <SPAN class="string token">"//work/work/plan/luam/1p2007/"</SPAN> <SPAN class="operator token">+</SPAN> year <SPAN class="operator token">+</SPAN> <SPAN class="string token">"/"</SPAN> <SPAN class="operator token">+</SPAN> locno <SPAN class="operator token">+</SPAN> <SPAN class="string token">"/data_for_item.gdb|data/site_location"</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>AddMessage<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'in: '</SPAN> <SPAN class="operator token">+</SPAN> inFc<SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>AddMessage<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'out: '</SPAN> <SPAN class="operator token">+</SPAN> outFc<SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>CheckOutExtension<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'AgendaMapping'</SPAN><SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>FeatureToPoint_management<SPAN class="punctuation token">(</SPAN>inFc<SPAN class="punctuation token">,</SPAN>outFc<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
I wonder if it could have anything to do with the licensing level that I may have for arcmap citrix? I'm just taking a guess on this based on the "The tool is not licensed" comment.
Any thoughts appreciated.
Thanks