Try this shape script as it draws the ArchiMate Application Component and will do what you appear to want.
shape main
{
layouttype="border";
defsize(90,70);
rectangle(0,0,100,100);
if(hasproperty("rectanglenotation","0"))
{
addsubshape("port","w");
}
addsubshape("name","n");
addsubshape("packagename","center");
addsubshape("stereotype","s");
shape port
{
preferredwidth=20;
scalable=false;
rectangle(-10,-10,10,0);
rectangle(-10,10,10,20);
}
shape name
{
//bold="true";
preferredHeight=40;
v_align ="bottom";
h_align="center";
print("#name#");
}
shape packagename
{
preferredHeight=20;
v_align ="center";
h_align="center";
println("#packagename#"); // Assume the package is domain then could use package name
}
shape stereotype
{
preferredHeight=20;
v_align ="top";
h_align="center";
println("#stereotype#");
}
}
decoration component
{
orientation="ne";
if(hasproperty("rectanglenotation","0"))
{
}
else
{
rectangle(0,0,60,100);
rectangle(-10,10,10,30);
rectangle(-10,50,10,70);
}
}
The quick way to get the result you are looking for is to create a stereotype in your model called "ApplicationComponent" which extends UML component.
You can create stereotypes via Ribbon Configure>UML Types
Stereotype Name:ApplicationComponent
Base Class: Component
Override Appearance: Shape Script radio button
Click Edit button and paste the script
Click OK button
Click Save button
Click Close button
Once that done create a ArchiMate V3 diagram then drag a Archimate Component on to it and change the stereotype from "ArchiMate_ApplicationComponent" to "ApplicationComponent"
Hope you can follow those instructions
If you find that helpful then a helpful vote would be appreciated.